File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/service-library/src/servicelib/long_running_tasks Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1212from common_library .async_tools import cancel_wait_task
1313from models_library .api_schemas_long_running_tasks .base import TaskProgress
1414from pydantic import PositiveFloat
15- from servicelib .background_task import create_periodic_task
16- from servicelib .logging_utils import log_catch
1715
16+ from ..background_task import create_periodic_task
17+ from ..logging_utils import log_catch
1818from .errors import (
1919 TaskAlreadyRunningError ,
2020 TaskCancelledError ,
3333_DEFAULT_NAMESPACE : Final [str ] = "lrt"
3434
3535_CANCEL_TASK_TIMEOUT : Final [PositiveFloat ] = datetime .timedelta (
36- seconds = 1
36+ seconds = 10 # NOTE: 1 second is too short to cleanup a task
3737).total_seconds ()
3838
3939RegisteredTaskName : TypeAlias = str
@@ -196,7 +196,6 @@ def _add_task(
196196 * ,
197197 fire_and_forget : bool ,
198198 ) -> TrackedTask :
199-
200199 tracked_task = TrackedTask (
201200 task_id = task_id ,
202201 task = task ,
You can’t perform that action at this time.
0 commit comments