Build 060.28: implement Persistent Checkpoint and Startup Recovery
This commit is contained in:
@@ -30,12 +30,17 @@ RUNTIME_CLEANUP_TIMEOUT_SECONDS = 5.0
|
||||
|
||||
OWNED_TASK_NAMES = frozenset(
|
||||
{
|
||||
"application-shutdown",
|
||||
"market-data-storage-shutdown",
|
||||
"market-data-storage-startup",
|
||||
"telegram-polling",
|
||||
"trade-stream-market-processing",
|
||||
"trade-stream-receive",
|
||||
"trade-stream-runtime",
|
||||
"trade-stream-runtime-recovery",
|
||||
"trade-stream-scheduler",
|
||||
"trade-stream-startup-recovery",
|
||||
"trade-stream-state-hydration",
|
||||
"trade-stream-startup",
|
||||
}
|
||||
)
|
||||
@@ -173,7 +178,10 @@ def active_owned_task_names() -> tuple[str, ...]:
|
||||
for task in asyncio.all_tasks()
|
||||
if task is not current_task
|
||||
and not task.done()
|
||||
and task.get_name() in OWNED_TASK_NAMES
|
||||
and (
|
||||
task.get_name() in OWNED_TASK_NAMES
|
||||
or task.get_name().startswith("persistent-application-")
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user