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
allgo
allgo
Commits
f5677138
Commit
f5677138
authored
Feb 02, 2017
by
BAIRE Anthony
Browse files
use a unique name for the fifo
(we never know)
parent
15e85bc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker/controller.py
View file @
f5677138
...
...
@@ -932,7 +932,7 @@ class JobManager(Manager):
# - we have no unusual dependencies (only sh, cat and
# mkfifo)
command
=
[
"/bin/sh"
,
"-c"
,
"""
fifo=/tmp/.allgo.fifo
fifo=/tmp/.allgo.fifo
.{job_id}
if mkfifo "$fifo"
then
exec cat <"$fifo" >allgo.log &
...
...
@@ -943,7 +943,7 @@ class JobManager(Manager):
else
"$@" 2>&1 | cat >allgo.log
fi
"""
,
"""
.
format
(
job_id
=
job
.
id
)
,
"job%d"
%
job
.
id
,
webapp
.
entrypoint
]
+
shlex
.
split
(
job
.
param
),
labels
=
{
"allgo.tmp_img"
:
tmp_img
or
""
},
...
...
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