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

Method assert_completed

t/integration/test_tasks.py:167–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 result = app.send_task(add_ignore_result.name, args=(1, 2))
166
167 def assert_completed():
168 assert result.id in worker_state.successful_requests
169
170 manager.wait_for(assert_completed, catch=(AssertionError,))
171 meta = app.backend.get_task_meta(result.id)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected