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
fd1c1545
Commit
fd1c1545
authored
Oct 08, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrate cluster master into backend process so queue can access worker state
parent
1d5a0b69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
backend.py
vidai/backend.py
+9
-0
No files found.
vidai/backend.py
View file @
fd1c1545
...
@@ -23,6 +23,8 @@ import time
...
@@ -23,6 +23,8 @@ import time
import
threading
import
threading
from
.comm
import
SocketServer
,
Message
from
.comm
import
SocketServer
,
Message
from
.config
import
get_analysis_backend
,
get_training_backend
,
set_analysis_backend
,
set_training_backend
from
.config
import
get_analysis_backend
,
get_training_backend
,
set_analysis_backend
,
set_training_backend
from
.cluster_master
import
start_cluster_master
import
threading
worker_sockets
=
{}
# type: dict
worker_sockets
=
{}
# type: dict
...
@@ -129,6 +131,13 @@ def backend_process() -> None:
...
@@ -129,6 +131,13 @@ def backend_process() -> None:
worker_server
=
SocketServer
(
socket_path
=
worker_socket_path
,
comm_type
=
'unix'
)
worker_server
=
SocketServer
(
socket_path
=
worker_socket_path
,
comm_type
=
'unix'
)
worker_server
.
start
(
worker_message_handler
)
worker_server
.
start
(
worker_message_handler
)
# Start cluster master in background thread
from
.config
import
get_cluster_host
,
get_cluster_port
cluster_host
=
get_cluster_host
()
or
'0.0.0.0'
cluster_port
=
get_cluster_port
()
cluster_thread
=
threading
.
Thread
(
target
=
start_cluster_master
,
args
=
(
cluster_host
,
cluster_port
,
None
,
None
,
False
),
daemon
=
True
)
cluster_thread
.
start
()
try
:
try
:
while
True
:
while
True
:
time
.
sleep
(
1
)
time
.
sleep
(
1
)
...
...
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