Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
V
vidai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
vidai
Commits
1d41907b
Commit
1d41907b
authored
Oct 09, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store worker information in job result for display in jobs page
parent
7ef645fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
cluster_master.py
vidai/cluster_master.py
+8
-1
No files found.
vidai/cluster_master.py
View file @
1d41907b
...
@@ -1391,7 +1391,14 @@ class ClusterMaster:
...
@@ -1391,7 +1391,14 @@ class ClusterMaster:
if
worker_key
:
if
worker_key
:
job_id
=
await
self
.
assign_job_to_worker
(
worker_key
,
job
[
'data'
],
queue_id
=
job
[
'id'
])
job_id
=
await
self
.
assign_job_to_worker
(
worker_key
,
job
[
'data'
],
queue_id
=
job
[
'id'
])
if
job_id
:
if
job_id
:
update_queue_status
(
job
[
'id'
],
'processing'
,
{
'job_id'
:
job_id
,
'status'
:
'Assigned to worker'
},
job_id
=
job_id
)
# Include worker information in the result
worker_info
=
{
'job_id'
:
job_id
,
'status'
:
'Assigned to worker'
,
'worker'
:
worker_key
,
'worker_type'
:
self
.
processes
[
worker_key
][
'name'
]
}
update_queue_status
(
job
[
'id'
],
'processing'
,
worker_info
,
job_id
=
job_id
)
print
(
f
"Assigned job {job['id']} ({job_id}) to worker {worker_key}"
)
print
(
f
"Assigned job {job['id']} ({job_id}) to worker {worker_key}"
)
else
:
else
:
print
(
f
"Failed to assign job {job['id']} to worker {worker_key}, re-queuing"
)
print
(
f
"Failed to assign job {job['id']} to worker {worker_key}, re-queuing"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment