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
62f80486
Commit
62f80486
authored
Oct 09, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix timeout extension by querying database directly for progress instead of using web.py
parent
04e2efe9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
cluster_master.py
vidai/cluster_master.py
+3
-3
web.py
vidai/web.py
+1
-0
No files found.
vidai/cluster_master.py
View file @
62f80486
...
@@ -815,9 +815,9 @@ class ClusterMaster:
...
@@ -815,9 +815,9 @@ class ClusterMaster:
elif
response
and
response
.
msg_type
==
'result_pending'
:
elif
response
and
response
.
msg_type
==
'result_pending'
:
# Check if we have recent progress to extend timeout
# Check if we have recent progress to extend timeout
from
.
web
import
get_progress
from
.
database
import
get_queue_by_job_id
progress_response
=
get_progress
(
job_id
)
job
=
get_queue_by_job_id
(
job_id
)
if
progress_response
and
'progress'
in
progress_response
:
if
job
and
job
.
get
(
'progress'
,
0
)
>
0
:
has_progress
=
True
has_progress
=
True
last_progress_time
=
time
.
time
()
last_progress_time
=
time
.
time
()
# Extend timeout when progress is active
# Extend timeout when progress is active
...
...
vidai/web.py
View file @
62f80486
...
@@ -90,6 +90,7 @@ def send_to_backend(msg_type: str, data: dict) -> str:
...
@@ -90,6 +90,7 @@ def send_to_backend(msg_type: str, data: dict) -> str:
def
get_progress
(
job_id
:
str
)
->
dict
:
def
get_progress
(
job_id
:
str
)
->
dict
:
"""Get progress for a job."""
"""Get progress for a job."""
try
:
try
:
comm
.
connect
()
# Send get_progress request to backend
# Send get_progress request to backend
progress_msg
=
Message
(
'get_progress'
,
str
(
uuid
.
uuid4
()),
{
'job_id'
:
job_id
})
progress_msg
=
Message
(
'get_progress'
,
str
(
uuid
.
uuid4
()),
{
'job_id'
:
job_id
})
comm
.
send_message
(
progress_msg
)
comm
.
send_message
(
progress_msg
)
...
...
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