Cronicle icon indicating copy to clipboard operation
Cronicle copied to clipboard

Run a group of jobs as a single unit

Open audetto opened this issue 4 years ago • 1 comments

I am using 0.8.61.

I have a group of jobs that I run at the same time (in a queue, order does not matter). I like to keep them as separate jobs for clarity.

Is it possible to trigger them all

  1. as a dependency of a previous one?
  2. from the gui with a single click?

As I said, I like to keep them separate to have individual results, but I would like to schedule them in block. Is it possible?

audetto avatar Jun 22 '21 07:06 audetto

Based on you recent issues, I guess what you are requesting is a workflow, like running N jobs as a single unit (concurrently or in sequence). There is no in-the-box solution for that. I believe @jhuckaby mentioned something like that will be implemented on the next version. But since you can launch jobs via rest api, you can build a script or even a plugin to achieve that. I created such plugin for my own experimental fork: https://github.com/cronicle-edge/cronicle-edge/blob/main/bin/workflow.js It can run group of jobs (based on category or prefix) or single job N times (for different input parameters) You can try it with docker: docker run -it -p 3012:3012 -e CRONICLE_manager=1 cronicle/cronicle:edge manager If any interest I can adopt this for classic cronicle, althouth it would require hardcoding api key in plugin parameters.

Ideal workflow plugin obviously should avoid interacting with keys (just launch jobs internally). I also realized grouping jobs by pattern is not a particularly good idea. I think user should define specific list of steps (jobs)

mikeTWC1984 avatar Jun 24 '21 15:06 mikeTWC1984