Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
88acde4f
Commit
88acde4f
authored
Sep 28, 2018
by
Samuel GAIST
Browse files
[scripts][worker] Improve parameter name
parent
5527c8ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/scripts/worker.py
View file @
88acde4f
...
...
@@ -30,7 +30,7 @@
Usage:
%(prog)s [-v ... | --verbose ...] [ --name=<name>] [--prefix=<path>]
[--cache=<path>] [--docker] [--docker-network=<name>] <address>
[--cache=<path>] [--docker] [--docker-network=<name>] <
scheduler_
address>
%(prog)s (--help | -h)
%(prog)s (--version | -V)
...
...
@@ -285,7 +285,7 @@ def main(user_input=None):
logger
.
info
(
"Using docker network: '%s'"
,
docker_network_name
)
# Establish a connection with the scheduler
(
context
,
socket
,
poller
)
=
connect_to_scheduler
(
args
[
'<address>'
],
args
[
'--name'
])
(
context
,
socket
,
poller
)
=
connect_to_scheduler
(
args
[
'<
scheduler_
address>'
],
args
[
'--name'
])
if
context
is
None
:
return
1
...
...
@@ -298,7 +298,7 @@ def main(user_input=None):
while
not
stop
:
# If necessary, wait for the comeback of the scheduler
if
not
scheduler_available
:
(
context
,
socket
,
poller
)
=
connect_to_scheduler
(
args
[
'<address>'
],
args
[
'--name'
])
(
context
,
socket
,
poller
)
=
connect_to_scheduler
(
args
[
'<
scheduler_
address>'
],
args
[
'--name'
])
if
context
is
None
:
break
scheduler_available
=
True
...
...
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