Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit 70da83c

Browse files
committed
Merge context_details dict with new values
1 parent e0229be commit 70da83c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/app.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ def process_workflow_job():
7979
else:
8080
time_to_start = (time_start - datetime.fromtimestamp(job_requested)).seconds
8181

82-
extra_data = {
82+
context_details = {
83+
**context_details,
8384
"time_to_start": time_to_start,
8485
"runner_name": runner_name,
8586
"runner_public": runner_public,
8687
"repository_private": repository_private
8788
}
88-
context_details = {**context_details, **extra_data}
8989

9090
elif action == "completed":
9191
job_requested = jobs.get(job_id)
@@ -99,11 +99,12 @@ def process_workflow_job():
9999
# delete from memory
100100
del jobs[job_id]
101101

102-
extra_data = {
102+
context_details = {
103+
**context_details,
103104
"time_to_finish": time_to_finish,
104105
"conclusion": conclusion
105106
}
106-
context_details = {**context_details, **extra_data}
107+
107108
else:
108109
app.logger.warning(f"Unknown action {action}, removing from memory")
109110
if job_id in jobs:

0 commit comments

Comments
 (0)