Skip to content

Add schedule command to set/clear query refresh schedules - #20

Merged
JohanLorenzo merged 1 commit into
mozilla:mainfrom
JohanLorenzo:schedules
Jun 26, 2026
Merged

JohanLorenzo merged 1 commit into
mozilla:mainfrom
JohanLorenzo:schedules

Conversation

@JohanLorenzo

@JohanLorenzo JohanLorenzo commented Jun 26, 2026 •

Copy link
Copy Markdown
Collaborator

Verification

  • stmo-cli schedule 121795 121794 --interval 3600 --time 08:30 → both YAMLs updated to interval: 3600, time: 08:30
  • stmo-cli schedule 121795 121794 --clear → both YAMLs updated to schedule: null
  • stmo-cli deploy --all → both queries deployed; Redash API confirmed schedule: null on both
  • Restored original schedule and confirmed on Redash API
  • --interval + --clear together → clap error: cannot be used with '--clear'
  • Missing --interval/--clear → error with usage examples
  • Unknown query ID → No local file found for query 99999. Run 'stmo-cli fetch 99999' first.

@JohanLorenzo
JohanLorenzo merged commit 0ea22fd into mozilla:main Jun 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant