mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #35859 -- Removed support for Task enqueuing on transaction commit.
This removes the ability to configure Task enqueueing via a setting,
since the proposed `ENQUEUE_ON_COMMIT` did not support multi-database
setups.
Thanks to Simon Charette for the report.
Follow-up to 4289966d1b.
This commit is contained in:
@@ -54,16 +54,6 @@ def exit_task():
|
||||
exit(1)
|
||||
|
||||
|
||||
@task(enqueue_on_commit=True)
|
||||
def enqueue_on_commit_task():
|
||||
pass
|
||||
|
||||
|
||||
@task(enqueue_on_commit=False)
|
||||
def never_enqueue_on_commit_task():
|
||||
pass
|
||||
|
||||
|
||||
@task()
|
||||
def hang():
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user