+
+ if state == FINISHED:
+ print("Job", jobid, "is done")
+ bm.importOutputFiles(job, "resultdir/seconddirname")
+ elif state == FAILED:
+ print("Job", jobid, " finished in error")
+ bm.importOutputFiles(job, "resultdir/seconddirname")
+ return 1
+ else:
+ print("Timeout while executing job")
+ return 1
+