Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/implementors/upload_error.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.6.5, created at 2024-11-15 02:12 +0000

1import time 

2import logging 

3from daiquiri.core.components import ComponentActor 

4 

5_logger = logging.getLogger(__name__) 

6 

7 

8class Upload_ErrorActor(ComponentActor): 

9 name = "upload_error" 

10 

11 def method(self, *args, **kwargs): 

12 """Actor to process actor errors externally 

13 

14 Kwargs: 

15 actid (str): The actor id 

16 actor (ComponentActor): The actor raising the exception 

17 exception (Exception): The exception the actor raised 

18 """ 

19 _logger.error("Process error (%s %s)", args, kwargs) 

20 time.sleep(1)