Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
devel:documentation:application_configuration:dev:scheduled_tasks:task-scheduler [2020/02/26 12:35] apeterova [DeleteProvisioningArchiveTaskExecutor] optimized query |
devel:documentation:application_configuration:dev:scheduled_tasks:task-scheduler [2020/05/14 05:37] kucerar |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Tasks scheduler ====== | ====== Tasks scheduler ====== | ||
- | {{tag> scheduler final}} | + | {{tag> scheduler final lrt long running task description triggers cron scheduled |
The task can be scheduled in three different ways - types of '' | The task can be scheduled in three different ways - types of '' | ||
Line 68: | Line 68: | ||
Task can be executed repetitively without reschedule is needed. When task is canceled (e.g. by server is restarted), then task can be executed again (~recovered) directly from long running task agenda. New task will be created and executed with the same configuration as original task. **When task** is stateful and **supports queue**, then **already processed items will not be processed again**. | Task can be executed repetitively without reschedule is needed. When task is canceled (e.g. by server is restarted), then task can be executed again (~recovered) directly from long running task agenda. New task will be created and executed with the same configuration as original task. **When task** is stateful and **supports queue**, then **already processed items will not be processed again**. | ||
- | To enable this feature, task method '' | ||
- | {{ : | + | |
+ | < | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | {{ : | ||
Line 226: | Line 230: | ||
=== Parameters === | === Parameters === | ||
* ``Number of days`` - Delete events older than given number of days. | * ``Number of days`` - Delete events older than given number of days. | ||
+ | |||
+ | <code sql> | ||
+ | -- PostgreSql | ||
+ | -- Delete events older then 3 days | ||
+ | delete from idm_entity_event where result_state=' | ||
+ | vacuum full idm_entity_event; | ||
+ | </ | ||
==== DeleteLongRunningTaskExecutor==== | ==== DeleteLongRunningTaskExecutor==== |