14715: keepproxy.service checks for cluster config
[arvados.git] / crunch_scripts / arvados-bcbio-nextgen.py
index df66cf66e0e9ae7ead91c1622e2411e0fc4c2b5b..b7e19ecddb67061b3addde4a82e8a4a59c969202 100755 (executable)
@@ -1,11 +1,15 @@
 #!/usr/bin/python
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
 
 import arvados
 import subprocess
-import subst
+import crunchutil.subst as subst
 import shutil
 import os
 import sys
+import time
 
 if len(arvados.current_task()['parameters']) > 0:
     p = arvados.current_task()['parameters']
@@ -121,6 +125,7 @@ if rcode == 0:
     print("arvados-bcbio-nextgen: start writing output to keep")
 
     done = False
+    api = arvados.api('v1')
     while not done:
         try:
             out = arvados.CollectionWriter()