We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c1a6d2 commit d50464eCopy full SHA for d50464e
django_tasks/task.py
@@ -56,12 +56,16 @@ class Task(Generic[P, T]):
56
"""The name of the backend the task will run on"""
57
58
queue_name: str = DEFAULT_QUEUE_NAME
59
- """The name of the queue the task will run on """
+ """The name of the queue the task will run on"""
60
61
run_after: Optional[datetime] = None
62
"""The earliest this task will run"""
63
64
enqueue_on_commit: Optional[bool] = None
65
+ """
66
+ Whether the task will be enqueued when the current transaction commits,
67
+ immediately, or whatever the backend decides
68
69
70
def __post_init__(self) -> None:
71
self.get_backend().validate_task(self)
0 commit comments