Skip to content

[V16-queue_job] Problems with multiple databases #503

Description

@asierneiradev

Currently the queue_job module is not running jobs when multiple databases are available.

It returns errors when executing jobs because it is not able to get a proper environment for the database as Odoo is providing the response without the associated database.

The error occurs in the file queue/queue_job/controllers/main.py, line 75, in runjob

env = http.request.env(user=SUPERUSER_ID)
TypeError: 'NoneType' object is not callable

After this error, the job is re-queued and set to pending status.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions