You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked the issues list for similar or identical bug reports.
I have checked the pull requests list for existing proposed fixes.
I have checked the commit log to find out if the bug was already fixed in the main branch.
I have included all related issues and possible duplicate issues in this issue.
Related Issues and Possible Duplicates
Related Issues
None
Possible Duplicates
None
Description
There are several issues with the documentation regarding stamped headers:
Function Name Mismatch:
Documentation refers to revoke_by_stamped_header
Actual function name is revoke_by_stamped_headers (plural)
Unclear Documentation for apply_async:
Current docs only mention "headers (Dict) – Message headers to be included in the message"
stamps and stamped headers are not mentioned
No comprehensive example of how to use stamped headers for task revocation
Suggestions
Fix the function name in documentation to revoke_by_stamped_headers
Update the apply_async documentation to include stamped headers:
Current: only mentions "headers (Dict) – Message headers to be included in the message"
Should add:
stamped_headers (List) – Names of headers to be stamped for task tracking/revocation
stamps – Values for the stamped headers specified in stamped_headers
Add clear explanation of stamped headers concepts:
# Example implementationdefstart_process():
process_id=generate_process_id()
timestamp=timezone.now()
# Start task with stamped headerstask=process_task.apply_async(
kwargs={'process_id': process_id},
stamped_headers=['batch_id'], # List of header names to stampbatch_id=str(timestamp) # The actual stamp value
)
defstop_process(batch_id):
# Revoke all tasks with matching stampresult=app.control.revoke_by_stamped_headers(
{'batch_id': ['batch_id']},
terminate=True
)
The text was updated successfully, but these errors were encountered:
Checklist
Related Issues and Possible Duplicates
Related Issues
Possible Duplicates
Description
There are several issues with the documentation regarding stamped headers:
Function Name Mismatch:
revoke_by_stamped_header
revoke_by_stamped_headers
(plural)Unclear Documentation for
apply_async
:Suggestions
revoke_by_stamped_headers
apply_async
documentation to include stamped headers:stamped_headers
(List) – Names of headers to be stamped for task tracking/revocationThe text was updated successfully, but these errors were encountered: