Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
beat
beat.core
Commits
abb731b7
Commit
abb731b7
authored
7 years ago
by
Philip ABBET
Browse files
Options
Downloads
Patches
Plain Diff
[scripts] worker.py: only send one READY message to the scheduler
parent
a1314e17
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beat/core/scripts/worker.py
+3
-1
3 additions, 1 deletion
beat/core/scripts/worker.py
with
3 additions
and
1 deletion
beat/core/scripts/worker.py
+
3
−
1
View file @
abb731b7
...
...
@@ -221,8 +221,10 @@ def main(user_input=None):
# Send READY messages until the scheduler acknowlege us
global
stop
socket
.
send
(
'
rdy
'
)
logger
.
info
(
"
Waiting for the scheduler...
"
)
while
not
stop
:
socket
.
send
(
'
rdy
'
)
socks
=
dict
(
poller
.
poll
(
100
))
if
not
(
socket
in
socks
)
or
(
socks
[
socket
]
!=
zmq
.
POLLIN
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment