Skip to content

Commit d50464e

Browse files
committed
Add docstring
1 parent 0c1a6d2 commit d50464e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

django_tasks/task.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,16 @@ class Task(Generic[P, T]):
5656
"""The name of the backend the task will run on"""
5757

5858
queue_name: str = DEFAULT_QUEUE_NAME
59-
"""The name of the queue the task will run on """
59+
"""The name of the queue the task will run on"""
6060

6161
run_after: Optional[datetime] = None
6262
"""The earliest this task will run"""
6363

6464
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+
"""
6569

6670
def __post_init__(self) -> None:
6771
self.get_backend().validate_task(self)

0 commit comments

Comments
 (0)