Cortex4py icon indicating copy to clipboard operation
Cortex4py copied to clipboard

Wait for the job to finish

Open sidahmed-malaoui opened this issue 5 years ago • 1 comments

I is it way to wait for the job to finish like in this example :

job1 = api.analyzers.run_by_name('FileInfo_6_0', {
    'data': '/bin/ls',
    'dataType': 'file'
}, async=True)

# The next instruction should return only Success or Failure, because we reached it after the job finished executing.
print(job1.status)

Thank you in advance for your response.

sidahmed-malaoui avatar May 09 '20 11:05 sidahmed-malaoui

Any workaround on this? There's no clean way to wait for the job summary.

estebanramos avatar Jul 08 '21 12:07 estebanramos