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

1from marshmallow import fields 

2 

3from daiquiri.core.components.celery import CeleryTaskActor, CeleryTaskSchema 

4 

5 

6class SleepSchema(CeleryTaskSchema): 

7 sleep_time = fields.Int(dump_default=60) 

8 raise_exception = fields.Bool() 

9 reject = fields.Bool() 

10 

11 

12class SleepActor(CeleryTaskActor): 

13 schema = SleepSchema 

14 task = "sleep"