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
109e1dc9
Commit
109e1dc9
authored
Oct 08, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-queue jobs when no workers are available instead of failing
parent
5f82047c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
cluster_master.py
vidai/cluster_master.py
+3
-1
queue.py
vidai/queue.py
+2
-2
No files found.
vidai/cluster_master.py
View file @
109e1dc9
...
...
@@ -1022,7 +1022,9 @@ class ClusterMaster:
else
:
print
(
f
"Failed to assign job {job['id']} to worker {worker_key}"
)
else
:
print
(
f
"No suitable worker found for job {job['id']}"
)
print
(
f
"No suitable worker found for job {job['id']}, re-queuing"
)
from
.database
import
update_queue_status
update_queue_status
(
job
[
'id'
],
'queued'
,
error
=
'No suitable worker found, re-queued'
)
await
asyncio
.
sleep
(
5
)
# Poll every 5 seconds
...
...
vidai/queue.py
View file @
109e1dc9
...
...
@@ -262,8 +262,8 @@ class QueueManager:
response
=
handle_web_message
(
message
)
if
response
and
response
.
msg_type
==
'error'
:
# Immediate error
update_queue_status
(
job
[
'id'
],
'
failed'
,
error
=
response
.
data
.
get
(
'error'
,
'Backend error
'
))
# Immediate error
- re-queue the job instead of failing
update_queue_status
(
job
[
'id'
],
'
queued'
,
error
=
response
.
data
.
get
(
'error'
,
'No workers available, re-queued
'
))
return
# Poll for result (backend handles async processing)
...
...
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