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
133d777a
Commit
133d777a
authored
Oct 09, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove autoweight logic as it's not relevant for local-only setup
parent
abcb01ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
cluster_master.py
vidai/cluster_master.py
+1
-11
No files found.
vidai/cluster_master.py
View file @
133d777a
...
...
@@ -366,13 +366,6 @@ class ClusterMaster:
'failing'
:
False
# Mark as failing after 3 consecutive failures
}
# If this is the first client and weight wasn't explicitly set, change master weight to 0
from
.database
import
get_connected_cluster_clients
connected_clients
=
get_connected_cluster_clients
()
if
len
(
connected_clients
)
==
1
and
self
.
weight
==
100
and
not
self
.
weight_explicit
:
self
.
weight
=
0
print
(
"First client connected - changing master weight to 0 (automatic)"
)
backend_type
=
"GPU"
if
has_gpu
else
"CPU-only"
print
(
f
"Client {client_id} authenticated ({backend_type}) with backends: {available_backends}"
)
return
{
'type'
:
'auth_success'
,
'client_id'
:
client_id
}
...
...
@@ -454,10 +447,7 @@ class ClusterMaster:
for
proc_type
,
queue
in
self
.
process_queue
.
items
():
self
.
process_queue
[
proc_type
]
=
[(
k
,
w
)
for
k
,
w
in
queue
if
k
!=
proc_key
]
# If no clients remain and weight wasn't explicitly set, change master weight back to 100
if
len
(
self
.
clients
)
==
0
and
self
.
weight
==
0
and
not
self
.
weight_explicit
:
self
.
weight
=
100
print
(
"All clients disconnected - changing master weight back to 100 (automatic)"
)
# No autoweight logic
print
(
f
"Client {client_id} disconnected"
)
...
...
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