Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions clients/python/src/taskbroker_client/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,13 @@ def apply_async_with_future(
**options: Any,
) -> ProducerFuture | None:
"""
Schedule a task and return the producer future for callers that need to
wait on delivery alongside other Kafka produces.
Schedule a task and return the producer future.

This does not wait for delivery. Callers that need delivery confirmation
must wait on the returned future themselves. Callers that do not need the
future should use apply_async(). Ignoring the returned future does not
cancel or prevent the produce; the task activation has already been
handed to the producer.
"""
activation, args, kwargs = self._create_activation_for_async_dispatch(
args=args, kwargs=kwargs, headers=headers, expires=expires, countdown=countdown
Expand Down
Loading