hassio-rclone-backup icon indicating copy to clipboard operation
hassio-rclone-backup copied to clipboard

Use case and intended use of run_once

Open ThomDietrich opened this issue 1 year ago • 0 comments

Hey there! According to documentation run_once only executes jobs without a schedule. I was able to confirm this here:

https://github.com/jcwillox/hassio-rclone-backup/blob/84c511ee5f1ddf57e1c737a137bd881cd1f96644/rclone_backup/scheduler/main.go#L137

Could you elaborate on the use case? Today I was setting up a new system and wanted to test the proper configuration of this addon. Hence I needed to set a schedule time close to the current time - or tell the add-on to simply run_once immediately, or so I thought :)

I understand the hassio.addon_restart idea but could the "no schedule" condition be lifted so users can do their testing? Alternatively another option for immediate execution of scheduled jobs would be nice.

Cheers.

ThomDietrich avatar Sep 07 '22 12:09 ThomDietrich