@@ -12,6 +12,7 @@ Additional features which are implemented in this bundle.
12
12
* Persist tasks and executions in database
13
13
* Run statistics foreach execution of tasks
14
14
* Predefined system-tasks
15
+ * Locking mechanism to avoid concurrency problems
15
16
16
17
Installation
17
18
------------
54
55
55
56
System-Tasks
56
57
------------
57
-
58
58
System-tasks can be used to predefine tasks for deployment. The developer
59
59
can define which handler will be called (with an ``cron_expression `` and
60
60
a ``workload ``). This tasks can be scheduled with the following command.
@@ -79,23 +79,34 @@ supported.
79
79
After addition or changing in the config you have to run the command again
80
80
to be sure that the task-table will be updated.
81
81
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
+
82
90
Configuration Reference
83
91
-----------------------
84
92
85
93
.. code-block :: yaml
86
-
87
94
task :
88
- storage : doctrine # One of "array"; "doctrine"
95
+ storage : doctrine # One of "array"; "doctrine"
89
96
adapters :
90
97
doctrine :
91
- clear : true
98
+ clear : true
92
99
run :
93
100
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
+
99
110
100
111
.. _fastcgi_finish_request : http://php.net/manual/en/function.fastcgi-finish-request.php
101
112
.. _PHP FPM : http://php.net/manual/en/install.fpm.php
0 commit comments