Skip to content

Commit 0a65186

Browse files
committed
asyncio saving task fix
1 parent 434a5c5 commit 0a65186

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/app/services/execution_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,10 @@ async def _start_k8s_execution(
113113
config_map_data={runtime_cfg.file_name: script},
114114
)
115115

116-
asyncio.create_task(
116+
marked_execution = asyncio.create_task(
117117
self._mark_running_when_scheduled(pod_name, execution_id_str)
118118
)
119+
await marked_execution
119120

120121
logger.info(
121122
"K8s pod creation requested; waiting for Running phase",

0 commit comments

Comments
 (0)