job add Command
job add command adds a job to the task handler.
job add [--id <id>] [--schedule <cron_expression>] [--wait-for-event <event_name>] [--timeout <seconds>] <command>
|CLI command that will be executed when the job is triggered *||✔️|
* It is recommended to either surround the
command with single quotes (
') or escape special characters such as pipes (
|) or semicolons (
;). Multiple commands can be delimited using semicolons.
|Job identifier (if not provided, a random identifier is generated)||❌|
|The schedule as a ||➖|
|Waits for the specified event to occur (if defined in conjunction with the ||➖|
|Number of seconds for which the job is allowed to run before being terminated (3600 seconds by default)||❌|
> jobs add --id say-hello --schedule "* * * * *" echo hello world
Job say-hello added.
> jobs add --id early_hi --schedule "0 4 * * *" --wait-for-event collect_done 'match is("volume") | format id'
Job early_hi added.
> jobs add --id wait_for_collect_done collect_done: echo hello world
Job wait_for_collect_done added.