queue icon indicating copy to clipboard operation
queue copied to clipboard

Server action methods are no longer executed by crons

Open JulienMangono opened this issue 9 months ago • 0 comments

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:

  1. Add error raise to the _run_job method
  2. Wait for crons to execute
  3. 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.

JulienMangono avatar May 19 '25 12:05 JulienMangono