Bug 7

Title: New check task argument in Celery 4.0
Type: rfe Severity: normal
Components: Versions:
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ced
Priority: normal Keywords:

Created on 2016-08-04 15:23 by ced, last changed 2019-02-16 16:46 by ced.

msg10 (view) Author: [hidden] (ced) Date: 2016-08-04 15:23
The coming new version of Celery introduced a new behaviour
when calling apply_async [1]. It checks the task arguments.
This behaviour is not compatible when the design of
TrytonTask because it override the apply_async to add
transactional keyword arguments and those arguments are not
defined on the function of the Task.
I see three options to deal with this new behaviour:

- we could override the __header__ to remove the
transactional keywords.

- we could remove the __header__ and so the check will not
be done.

- we could require to write task function that takes keyword

The first option is clearly the one that is the richer in
term of feature but it is also the more complex to implement.
The last option is the easiest but it will be complicate to
explain to users why they must put a keyword arguments that
are never used.

Date User Action Args
2019-02-16 16:46:01cedsetstatus: open
2016-08-04 15:23:00cedcreate