Skip to content

Run --update should re-register cron entries after downloading the latest release #39

@ChaseFlorell

Description

@ChaseFlorell

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:

  1. Read the current config.toml (which may contain updated cron schedule values)
  2. 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.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions