Scheduler API
Scheduler API is a service designed to schedule asynchronous operations. Operations defines as scheduler rules with cron string and concurrency-policy.
Scheduler API operates with tasks provided by Task API so you need to include it your Aidbox service configuration before using Scheduler API.
Rule example
schedule
Cron string that defines period of executing task.
concurrency-policy
Can be "forbid" or "allow". When value is "forbid" new task would not be started while previous scheduled same task is still running. When value is "allow" new task starts anyway. Default value is "forbid".
start-deadline-seconds
Period of time in seconds when task is still available to start if it misses its scheduled time. Default value is 60.
task-request
Definition of the task. Check out regular archive creating guide for more examples.
Start using Scheduler API
To start using Scheduler API you should define scheduler-service and add it into your Aidbox service configuration:
Define your scheduler services. Include created rules in scheduler-service
:rules
property.Include task, executor and scheduler services in your Aidbox service configuration if they are not already included in your configuration.
Restart Aidbox.
If all services running correctly you should see Scheduler icon on navigation bar:
Last updated