MCPcopy Create free account
hub / github.com/vercel/examples / clear_jobs

Function clear_jobs

python/celery/worker/store.py:72–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71
72def clear_jobs() -> int:
73 job_ids = r.zrange(JOBS_SET, 0, -1)
74 if job_ids:
75 pipe = r.pipeline()
76 for jid in job_ids:
77 pipe.delete(JOB_KEY.format(jid))
78 pipe.delete(JOBS_SET)
79 pipe.execute()
80 return len(job_ids)

Callers 1

delete_jobsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected