...
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | runJobByCron(silFile, args, cronExpr) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Runs the job according to the specified cron schedule. |
Runs the job according to the specified cron schedule.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
silFile | String | Yes | The sil file name. | args | array string | Yes | The list of the arguments of the job. | cronExpr | String | Yes | The cron expression | |
Return Type
None
The returned value has no meaning.
Example
This SIL script will create a job that will run the script "script.sil" at 12pm (noon) every day.
Code Block |
---|
|
runJobByCron("script.sil", {project, key}, "0 0 12 * * ?"); |
In "script.sil" you can access the args using the next syntax:
Code Block |
---|
|
string issueKey = argv[1]; |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "schedule_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|