Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pipelet
Pipelet
Commits
f0b44582
Commit
f0b44582
authored
May 15, 2012
by
Maude Le Jeune
Browse files
remove command line argument after launch
parent
c377dd08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
pipelet/launchers.py
pipelet/launchers.py
+2
-0
No files found.
pipelet/launchers.py
View file @
f0b44582
...
...
@@ -491,6 +491,7 @@ echo "worker returned at $(date)"
if
__name__
==
"__main__"
:
import
optparse
import
sys
parser
=
optparse
.
OptionParser
()
parser
.
add_option
(
'-H'
,
'--host'
,
metavar
=
'hostname'
,
help
=
'hostame or adress of the scheduler server'
,
default
=
socket
.
gethostname
())
...
...
@@ -506,6 +507,7 @@ if __name__ == "__main__":
name
=
options
.
logfile
.
split
(
"_"
)[
-
1
]
wl
=
init_logger
(
name
,
options
.
logfile
)
w
=
worker
.
ProcessWorker
(
address
=
(
options
.
host
,
options
.
port
),
authkey
=
options
.
secret
,
logger
=
wl
)
sys
.
argv
=
[
sys
.
argv
[
0
]]
## do not propage command line argument to segment script
w
.
run
()
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