MCPcopy Create free account
hub / github.com/celery/celery / task_with_declared_time_limits

Function task_with_declared_time_limits

t/integration/tasks.py:678–683  ·  view source on GitHub ↗

Task with explicitly declared time limits — verifies request fields are set.

(self)

Source from the content-addressed store, hash-verified

676
677@shared_task(bind=True, time_limit=60, soft_time_limit=45)
678def task_with_declared_time_limits(self):
679 """Task with explicitly declared time limits — verifies request fields are set."""
680 return {
681 'time_limit': self.request.time_limit,
682 'soft_time_limit': self.request.soft_time_limit,
683 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected