Bug #20611
Updated by Peter Amstutz almost 2 years ago
Simple python script
Without "api = arvados.api()" it works fine
With that added, it apparently hangs. Example:
https://workbench2.scale.arvadosapi.com/processes/scale-xvhdp-f9kur2tybompfb1
Also
<pre>
Traceback (most recent call last):
File "/home/peter/work/arvados/sdk/cwl/arvados_cwl/arvcontainer.py", line 502, in done
"%s (%s) error log:" % (label, record["uuid"]), maxlen=40, include_crunchrun=(rcode is None or rcode > 127))
UnboundLocalError: local variable 'rcode' referenced before assignment
</pre>
Here's the dumb little script I'm using
<pre>
import time
import sys
ticks = int(sys.argv[1])
print("ticking %s times" % ticks, flush=True)
import logging
logging.getLogger('googleapiclient').setLevel(logging.DEBUG)
import arvados
print("imported", flush=True)
api = arvados.api()
print("api'd", flush=True)
for i in range(1, ticks+1):
time.sleep(10)
print("tick %s / %s" % (i, ticks), flush=True)
print("done", flush=True)
</pre>
The last thing it prints is "imported" so we know the import works but getting an API object does not.