icingaweb2-module-director
icingaweb2-module-director copied to clipboard
proposal for new feature run Job after previous job
in case one want import data from external source the below sequence of job are needed:
- import
- sync
- config
It would be a nice feature if one can set startup to "after successful execution of Job 1" for example
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".