File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 11- After creating a new database or installing ` queue_job ` on an existing
22 database, Odoo must be restarted for the runner to detect it.
3- - When Odoo shuts down normally, it waits for running jobs to finish.
4- However, when the Odoo server crashes or is otherwise force-stopped,
5- running jobs are interrupted while the runner has no chance to know
6- they have been aborted. In such situations, jobs may remain in
7- ` started ` or ` enqueued ` state after the Odoo server is halted. Since
8- the runner has no way to know if they are actually running or not, and
9- does not know for sure if it is safe to restart the jobs, it does not
10- attempt to restart them automatically. Such stale jobs therefore fill
11- the running queue and prevent other jobs to start. You must therefore
12- requeue them manually, either from the Jobs view, or by running the
13- following SQL statement * before starting Odoo* :
14-
15- ``` sql
16- update queue_job set state= ' pending' where state in (' started' , ' enqueued' )
17- ```
You can’t perform that action at this time.
0 commit comments