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
24bf0c4b
Commit
24bf0c4b
authored
Oct 08, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug logging to queue manager
parent
be00cb97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
queue.py
vidai/queue.py
+4
-2
No files found.
vidai/queue.py
View file @
24bf0c4b
...
@@ -128,21 +128,23 @@ class QueueManager:
...
@@ -128,21 +128,23 @@ class QueueManager:
def
_process_queue
(
self
)
->
None
:
def
_process_queue
(
self
)
->
None
:
"""Background thread to process queued jobs."""
"""Background thread to process queued jobs."""
print
(
"Queue manager started"
,
flush
=
True
)
while
self
.
running
:
while
self
.
running
:
try
:
try
:
with
self
.
lock
:
with
self
.
lock
:
if
self
.
active_jobs
<
self
.
max_concurrent
:
if
self
.
active_jobs
<
self
.
max_concurrent
:
pending
=
get_pending_queue_items
()
pending
=
get_pending_queue_items
()
if
pending
:
if
pending
:
print
(
f
"Found {len(pending)} pending job(s)"
,
flush
=
True
)
job
=
pending
[
0
]
# Get highest priority job
job
=
pending
[
0
]
# Get highest priority job
if
self
.
_can_start_job
(
job
):
if
self
.
_can_start_job
(
job
):
self
.
_start_job
(
job
)
self
.
_start_job
(
job
)
else
:
else
:
print
(
f
"Job {job['id']} waiting for available workers"
)
print
(
f
"Job {job['id']} waiting for available workers"
,
flush
=
True
)
time
.
sleep
(
1
)
# Check every second
time
.
sleep
(
1
)
# Check every second
except
Exception
as
e
:
except
Exception
as
e
:
print
(
f
"Queue processing error: {e}"
)
print
(
f
"Queue processing error: {e}"
,
flush
=
True
)
time
.
sleep
(
5
)
time
.
sleep
(
5
)
def
_start_job
(
self
,
job
:
Dict
[
str
,
Any
])
->
None
:
def
_start_job
(
self
,
job
:
Dict
[
str
,
Any
])
->
None
:
...
...
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