13365: Fix race condition between job submitted and event monitor threads
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 3 May 2018 17:46:57 +0000 (13:46 -0400)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 3 May 2018 17:46:57 +0000 (13:46 -0400)
commit6e098e8fde75fcec7e5be1a4873029f394bd055a
tree7d6a91c28b4a49eefbc6d9beb2c9c02c46e756db
parent4e9537b3a6c8dcd796b3e7d29630fe9ef2a9204c
13365: Fix race condition between job submitted and event monitor threads

Don't call "done" if work reuse means a container request or job
immediately comes back as Completed because it might get called
twice.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>
sdk/cwl/arvados_cwl/arvcontainer.py
sdk/cwl/arvados_cwl/arvjob.py