Commit f5677138 authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

use a unique name for the fifo

(we never know)
parent 15e85bc4
......@@ -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 ""},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment