Skip to content
Discussion options

You must be logged in to vote

Well, at my day job we just stop Cronicle entirely, update what we need, then start it again. But I guess since you're using Docker that doesn't work, because if you stop Cronicle, the container exits? I'm guessing that's what the problem is.

So, you'll have to script a sequence of actions using the REST API:

  1. Disable the scheduler
  2. Stop all jobs, OR wait for them to exit.
  3. Update your Plugins.
  4. Enable the scheduler again.

To enable/disable the scheduler, use the update_master_state API.

To wait for all jobs, poll the get_active_jobs API, and wait for it to return no results.

To abort all jobs, first use the get_active_jobs API to get the IDs of all active jobs, then call abort_job on each …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@klimmilk
Comment options

@jhuckaby
Comment options

Answer selected by jhuckaby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #721 on February 13, 2024 17:26.