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
28c25ebb
Commit
28c25ebb
authored
Oct 09, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add backend response checking in cluster master to re-queue jobs when workers are not available
parent
d3e3fb72
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
cluster_master.py
vidai/cluster_master.py
+18
-5
No files found.
vidai/cluster_master.py
View file @
28c25ebb
...
@@ -656,11 +656,24 @@ class ClusterMaster:
...
@@ -656,11 +656,24 @@ class ClusterMaster:
)
)
backend_comm
.
send_message
(
job_message
)
backend_comm
.
send_message
(
job_message
)
print
(
f
"Job {job_id} forwarded to local backend for {process_type} processing"
)
# Check response from backend
response
=
backend_comm
.
receive_message
()
if
response
and
response
.
msg_type
==
'error'
:
error_msg
=
response
.
data
.
get
(
'error'
,
'Unknown error'
)
print
(
f
"Backend refused job {job_id}: {error_msg}"
)
# Re-queue the job
from
.database
import
update_queue_status
update_queue_status
(
queue_id
,
'queued'
,
error
=
f
'Backend refused job: {error_msg}'
)
# Clean up
self
.
worker_jobs
[
worker_key
]
.
remove
(
job_id
)
self
.
worker_vram_usage
[
worker_key
]
-=
vram_required
del
self
.
active_jobs
[
job_id
]
return
None
else
:
print
(
f
"Job {job_id} forwarded to local backend for {process_type} processing"
)
# Start monitoring for result
# Start monitoring for result
self
.
pending_jobs
[
job_id
]
=
asyncio
.
create_task
(
self
.
_monitor_job_result
(
job_id
,
process_type
))
self
.
pending_jobs
[
job_id
]
=
asyncio
.
create_task
(
self
.
_monitor_job_result
(
job_id
,
process_type
))
return
job_id
return
job_id
except
Exception
as
e
:
except
Exception
as
e
:
...
...
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