Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/implementors/celery/sleep.py: 100%
9 statements
« prev ^ index » next coverage.py v7.6.5, created at 2024-11-15 02:12 +0000
« prev ^ index » next coverage.py v7.6.5, created at 2024-11-15 02:12 +0000
1from marshmallow import fields
3from daiquiri.core.components.celery import CeleryTaskActor, CeleryTaskSchema
6class SleepSchema(CeleryTaskSchema):
7 sleep_time = fields.Int(dump_default=60)
8 raise_exception = fields.Bool()
9 reject = fields.Bool()
12class SleepActor(CeleryTaskActor):
13 schema = SleepSchema
14 task = "sleep"