Replies: 1 comment 5 replies
-
Hi @ticosax, tasks are processed completely independently from one another (in case of synchronous tasks, even in different threads). This is still true when deferring a task from inside another task. So, in your example, the job of the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Considering this snippet of a more or less realistic django project
To my surprise,
inner()
task was published into the queue (and executed).Instead I would have expected the transaction to be rollback-ed and the task wouldn't exists afterwards.
The explicit
@transaction.atomic()
wrapping is being defeated here.Is it the expected behavior of procrastinate ?
How can I guarantee that tasks are published within explicit transactional boundaries ?
Beta Was this translation helpful? Give feedback.
All reactions