Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
dc7d9b72
Commit
dc7d9b72
authored
Apr 20, 2018
by
Samuel GAIST
Browse files
[scripts][worker] Use WorkController constants and use send as they are bytes now
parent
2c7dddbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/scripts/worker.py
View file @
dc7d9b72
...
...
@@ -150,7 +150,7 @@ def connect_to_scheduler(address, name):
poller
.
register
(
socket
,
zmq
.
POLLIN
)
# Tell the scheduler we are ready
socket
.
send
_string
(
'rdy'
)
socket
.
send
(
WorkerController
.
READY
)
# Wait for a response from the scheduler
logger
.
info
(
"Waiting for the scheduler..."
)
...
...
@@ -419,7 +419,7 @@ def main(user_input=None):
if
socket
:
socket
.
send
_string
(
WorkerController
.
EXIT
)
socket
.
send
(
WorkerController
.
EXIT
)
# Cleanup
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment