MCPcopy Create free account
hub / github.com/python-arq/arq / main

Function main

docs/examples/custom_serialization_msgpack.py:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13async def main():
14 redis = await create_pool(
15 RedisSettings(),
16 job_serializer=msgpack.packb,
17 job_deserializer=lambda b: msgpack.unpackb(b, raw=False),
18 )
19 await redis.enqueue_job('the_task')
20
21
22class WorkerSettings:

Callers 1

Calls 3

create_poolFunction · 0.90
RedisSettingsClass · 0.90
enqueue_jobMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…