Skip to content

[V16-queue_job] Problems with multiple databases #503

@asierneiradev

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.

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