Queue Job Auto Requeue

Automatically reset queue jobs to pending after a given time.

Technical Name:
queue_job_auto_requeue
License:
Author:
Numigi
Website:
https://kastor.lab.numigi.net/web/image/product.template/1294/image_1920?unique=0a81b40
  • Odoo Version

Conditions générales
Garantie satisfait ou remboursé de 30 jours
Expédition : 2-3 jours ouvrables

Queue Job Auto Requeue

This module automatically reset queue jobs to pending after a given time.

Context

One known issue of the module queue_job is that when Odoo crashes or is force-stopped, running jobs remain in started or enqueued state.

These jobs not only remain in this state until manually requeued, but they also block other jobs in the channel from running.

Overview

This module adds a cron that runs every 5 minutes by default.

static/description/cron.png

It searches for jobs in started or enqueued state. For each job, it checks if the job has been started more than 5 minutes ago. If so, the job is requeued.

Custom Time Limit

The max time a job can run is parameterizable with the system parameter queue_job_time_limit. This parameter accepts a value in seconds (i.e. 600 for 10 minutes).

Contributors