File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/service-library/src/servicelib/long_running_tasks Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ class TaskData(BaseModel):
7575 datetime | None ,
7676 Field (
7777 description = (
78- "used to remove the task when it's first detectted as done "
78+ "used to remove the task when it's first detected as done "
7979 "if a task was started as fire_and_forget=True"
8080 )
8181 ),
Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ async def _get_tasks_to_remove(
113113
114114 for tracked_task in await tracked_tasks .list_tasks_data ():
115115 if tracked_task .fire_and_forget :
116- # fire and forget tasks also need to be remove form tracking
117- # when detectes ad done, start counting how much time has elapsed
116+ # fire and forget tasks also need to be remove from tracking
117+ # when detectes as done, start counting how much time has elapsed
118118 # if over stale_task_detect_timeout_s remove the task
119119
120120 # wait for task to complete
@@ -132,10 +132,10 @@ async def _get_tasks_to_remove(
132132 continue
133133
134134 # if enough time passes remove the task
135- elpased_since_done = (
135+ elapsed_since_done = (
136136 utc_now - tracked_task .detected_as_done_at
137137 ).total_seconds ()
138- if elpased_since_done > stale_task_detect_timeout_s :
138+ if elapsed_since_done > stale_task_detect_timeout_s :
139139 tasks_to_remove .append (
140140 (tracked_task .task_id , tracked_task .task_context )
141141 )
You can’t perform that action at this time.
0 commit comments