icingaweb2-module-director icon indicating copy to clipboard operation
icingaweb2-module-director copied to clipboard

proposal for new feature run Job after previous job

Open tomabg opened this issue 2 years ago • 1 comments

in case one want import data from external source the below sequence of job are needed:

  1. import
  2. sync
  3. config

It would be a nice feature if one can set startup to "after successful execution of Job 1" for example

tomabg avatar Mar 03 '22 07:03 tomabg

I'm fully supporting this proposal (I was going to open similar one) ...

Small add-on: the "chaining" of jobs can be done also from other site - in Job1 there could be dropdown box to select Job2 with labeling "start this job when successfully finished".

But the original proposal could be easier to implement - instead of entering frequency of the job (time in seconds) user could select/enter the name of job (which should finish successfully prior to starting this one). Technically in background it could be implemented as: if entered value for "Running interval" is not a number, set frequency to "hard-coded" 60s (or 5mins; to keep the timing logic in code) and add condition "if entered name of parent-job (the non-numeric string) finished within past 60s, then start this job".

btrnka63 avatar Aug 10 '22 06:08 btrnka63