MCPcopy
hub / github.com/celery/celery / retry_once_headers

Function retry_once_headers

t/integration/tasks.py:258–264  ·  view source on GitHub ↗

Task that fails and is retried. Returns headers.

(self, *args, max_retries=1,
                       countdown=0.1)

Source from the content-addressed store, hash-verified

256
257@shared_task(bind=True, max_retries=1)
258def retry_once_headers(self, *args, max_retries=1,
259 countdown=0.1):
260 """Task that fails and is retried. Returns headers."""
261 if self.request.retries:
262 return self.request.headers
263 raise self.retry(countdown=countdown,
264 max_retries=max_retries)
265
266
267@shared_task

Callers

nothing calls this directly

Calls 1

retryMethod · 0.80

Tested by

no test coverage detected