Loading...
 

History: Scheduler Handler

Preview of version: 4 (current)

This is a handler to create schedulers.

YAML
preferences: feature_scheduler: y objects: - type: scheduler ref: my_scheduler data: name: New Scheduler task: ConsoleCommandTask params: console_command: index:rebuild run_time: "0 6 * * *" status: active


Scheduler Object

NameMandatoryValue
nameyesScheduler name
description A brief description of the scheduled task
taskyesCheck task options section bellow
params Check task params options bellow
run_timeyesA CRON time format. Eg. every 5 minutes: "*/5 * * * *"
statusyesactive or inactive
re_run A bool flag (true/false) if scheduler should re-run on the next minute if last run failed


Task Options

Task NameDescription
ConsoleCommandTaskExecute a Tiki console command
ShellCommandTaskExecute a shell command
HTTPGetCommandTaskPerform a HTTP Get request and save the output
TikiCheckerCommandTaskCheck for Tiki updates


ConsoleCommandTask Params

NameMandatoryValue
console_commandyesThe console command to execute. Eg. index:rebuild


ShellCommandTask Params

NameMandatoryValue
shell_commandyesThe shell command to execute. Eg. index:rebuild
timeout The max execution time in seconds to run the command


HTTPGetCommandTask Params

NameMandatoryValue
urlyesThe URL to call
output_fileyesThe file path where the output should be saved
additional_http_headers Eg: "Accept-Language: en-us,en;\nAccept-Charset: ISO-8859-1,utf-8;"
basic_auth_username If requested URL required basic authentication
basic_auth_password If requested URL required basic authentication


TikiCheckerCommandTask Params

No params



History

Advanced
Information Version
Tue 06 of Aug, 2019 14:47 GMT-0000 Nelson Ko void In Parser.php line 706: Reference "/5 * * * *" does not exist at line 5 (near "run_time: */5 * * * *"). 4
Tue 28 of Aug, 2018 01:28 GMT-0000 Jorge Sá Pereira Improvement in documentation 3
Tue 28 of Aug, 2018 01:15 GMT-0000 Jorge Sá Pereira Add more task params 2
Tue 28 of Aug, 2018 01:09 GMT-0000 Jorge Sá Pereira Add page 1