Problem
Currently, --update downloads the latest stream.py from GitHub but does not re-register cron entries afterward. This means that if the cron schedule in config.toml has been changed (either manually or by a previous --set-property call), the live crontab is never updated to reflect those changes.
Expected Behavior
After --update successfully downloads and installs the new release, it should:
- Read the current
config.toml (which may contain updated cron schedule values)
- Call
register_cron_entries(config) to sync the live crontab with whatever is in config.toml
This ensures that a user who edits their cron schedule in config.toml and then runs --update (or has cron.autoUpdate = true) gets the schedule applied automatically, without needing to also run --install or crontab -e by hand.
Example Scenario
A user has cron.autoUpdate = true so --update fires daily at midnight. They edit config.toml to change cron.start from 30 6 1-31 4-10 * to 0 7 1-31 4-10 *. The next midnight --update run downloads the latest release, but the crontab is still firing at 6:30 am. The user has to remember to re-run --install to actually apply the schedule change.
Proposed Fix
At the end of the --update flow, after the new stream.py has been written to disk, add a call to register_cron_entries(config) so the crontab is always in sync with config.toml post-update.
Problem
Currently,
--updatedownloads the lateststream.pyfrom GitHub but does not re-register cron entries afterward. This means that if the cron schedule inconfig.tomlhas been changed (either manually or by a previous--set-propertycall), the live crontab is never updated to reflect those changes.Expected Behavior
After
--updatesuccessfully downloads and installs the new release, it should:config.toml(which may contain updated cron schedule values)register_cron_entries(config)to sync the live crontab with whatever is inconfig.tomlThis ensures that a user who edits their cron schedule in
config.tomland then runs--update(or hascron.autoUpdate = true) gets the schedule applied automatically, without needing to also run--installorcrontab -eby hand.Example Scenario
A user has
cron.autoUpdate = trueso--updatefires daily at midnight. They editconfig.tomlto changecron.startfrom30 6 1-31 4-10 *to0 7 1-31 4-10 *. The next midnight--updaterun downloads the latest release, but the crontab is still firing at 6:30 am. The user has to remember to re-run--installto actually apply the schedule change.Proposed Fix
At the end of the
--updateflow, after the newstream.pyhas been written to disk, add a call toregister_cron_entries(config)so the crontab is always in sync withconfig.tomlpost-update.