Replies: 2 comments 6 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.
-
|
I've made some progress, (conceptually), on how to approach this. |
Beta Was this translation helpful? Give feedback.
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