MCPcopy
hub / github.com/celery/celery / scheduled

Method scheduled

celery/app/control.py:151–166  ·  view source on GitHub ↗

Return list of scheduled tasks with details. Returns: Dict: Dictionary ``{HOSTNAME: [TASK_SCHEDULED_INFO,...]}``. Here is the list of ``TASK_SCHEDULED_INFO`` fields: * ``eta`` - scheduled time for task execution as string in ISO 8601 format * ``priority

(self, safe=None)

Source from the content-addressed store, hash-verified

149 return self._request('active', safe=safe)
150
151 def scheduled(self, safe=None):
152 """Return list of scheduled tasks with details.
153
154 Returns:
155 Dict: Dictionary ``{HOSTNAME: [TASK_SCHEDULED_INFO,...]}``.
156
157 Here is the list of ``TASK_SCHEDULED_INFO`` fields:
158
159 * ``eta`` - scheduled time for task execution as string in ISO 8601 format
160 * ``priority`` - priority of the task
161 * ``request`` - field containing ``TASK_INFO`` value.
162
163 See Also:
164 For more details about ``TASK_INFO`` see :func:`query_task` return value.
165 """
166 return self._request('scheduled')
167
168 def reserved(self, safe=None):
169 """Return list of currently reserved tasks, not including scheduled/active.

Callers 2

test_scheduledMethod · 0.80
test_scheduledMethod · 0.80

Calls 1

_requestMethod · 0.95

Tested by 2

test_scheduledMethod · 0.64
test_scheduledMethod · 0.64