@@ -12,6 +12,7 @@ Additional features which are implemented in this bundle.
1212* Persist tasks and executions in database
1313* Run statistics foreach execution of tasks
1414* Predefined system-tasks
15+ * Locking mechanism to avoid concurrency problems
1516
1617Installation
1718------------
5455
5556System-Tasks
5657------------
57-
5858System-tasks can be used to predefine tasks for deployment. The developer
5959can define which handler will be called (with an ``cron_expression `` and
6060a ``workload ``). This tasks can be scheduled with the following command.
@@ -79,23 +79,34 @@ supported.
7979After addition or changing in the config you have to run the command again
8080to be sure that the task-table will be updated.
8181
82+ Locking
83+ -------
84+ Locking is used to avoid concurrency problems when multiple task-runner runs at
85+ the same time (see :doc: `locking `). This feature has to be enabled and will have
86+ multiple different storages in the future.
87+
88+ Currently only file storage is implemented and usable.
89+
8290Configuration Reference
8391-----------------------
8492
8593.. code-block :: yaml
86-
8794 task :
88- storage : doctrine # One of "array"; "doctrine"
95+ storage : doctrine # One of "array"; "doctrine"
8996 adapters :
9097 doctrine :
91- clear : true
98+ clear : true
9299 run :
93100 mode : ' off' # One of "off"; "listener"
94- system_tasks :
95- enabled : true
96- handler_class : ~
97- workload : null
98- cron_expression : ~
101+ locking :
102+ enabled : false
103+ storage : file # One of "file"
104+ ttl : 600
105+ storages :
106+ file :
107+ directory : ' %kernel.cache_dir%/tasks'
108+ mode : ' off' # One of "off"; "listener"
109+
99110
100111 .. _fastcgi_finish_request : http://php.net/manual/en/function.fastcgi-finish-request.php
101112.. _PHP FPM : http://php.net/manual/en/install.fpm.php
0 commit comments