File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
src/simcore_service_storage/modules/celery Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -72,15 +72,15 @@ def send_task(
7272 return task_uuid
7373
7474 @make_async ()
75- def abort_task ( # pylint: disable=R6301
76- self , task_context : TaskContext , task_uuid : TaskUUID
77- ) -> None :
75+ @staticmethod
76+ def abort_task (task_context : TaskContext , task_uuid : TaskUUID ) -> None :
7877 task_id = _build_task_id (task_context , task_uuid )
7978 _logger .info ("Aborting task %s" , task_id )
8079 AbortableAsyncResult (task_id ).abort ()
8180
8281 @make_async ()
83- def get_task_result (self , task_context : TaskContext , task_uuid : TaskUUID ) -> Any :
82+ @staticmethod
83+ def get_task_result (task_context : TaskContext , task_uuid : TaskUUID ) -> Any :
8484 task_id = _build_task_id (task_context , task_uuid )
8585 with log_context (
8686 _logger ,
Original file line number Diff line number Diff line change 1+ # pylint:disable=no-name-in-module
2+ # pylint:disable=protected-access
3+ # pylint:disable=redefined-outer-name
4+ # pylint:disable=too-many-arguments
5+ # pylint:disable=too-many-positional-arguments
6+ # pylint:disable=unused-argument
7+ # pylint:disable=unused-variable
8+
19import asyncio
210import datetime
311import logging
You can’t perform that action at this time.
0 commit comments