Skip to content

Commit c449ef1

Browse files
committed
Merge PR #854 into 18.0
Signed-off-by sbidoul
2 parents 6792545 + 845cabf commit c449ef1

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

queue_job/readme/ROADMAP.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,2 @@
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-
```

0 commit comments

Comments
 (0)