queue
queue copied to clipboard
Server action methods are no longer executed by crons
Module
queue_job_cron
Describe the bug
Crons no longer execute server action methods.
To Reproduce
Affected versions: 18.0
Steps to reproduce the behavior:
- Add error raise to the _run_job method
- Wait for crons to execute
- The exception :
_run_job
cron._callback(job['cron_name'], job['ir_actions_server_id'])
TypeError: IrCron._callback() missing 1 required positional argument: 'job_id'
Expected behavior No raise and the server action must execute correctly
Additional context
The signature of the _callback method has changed in 18.0.
There are now only 2 parameters. In this module the signature has 3 parameters.