queue icon indicating copy to clipboard operation
queue copied to clipboard

Assigning delayable variable to another variable breaks delayable

Open robin5210 opened this issue 2 years ago • 1 comments

Module

The name of the module that has a bug.

job_queue

Describe the bug

A clear and concise description of what the bug is.

Doesn't work

job = self.delayable()._action(state).set(description=description)
job2 = job
job.delay()

This creates a task for example sale.order(180489,).__len__() while it should created a task sale.order(180489,)._action(state).

Does work

job = self.delayable()._action(state).set(description=description)
job.delay()

To Reproduce

Affected versions:

Steps to reproduce the behavior: See snippet above

Expected behavior

Assigning delayable object to intermediary variables should be possible.

Additional context Add any other context about the problem here. (e.g. OS, Python version, ...)

robin5210 avatar Aug 24 '23 13:08 robin5210

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Feb 25 '24 12:02 github-actions[bot]