Qiskit / qiskit-serverless

A programming model for leveraging quantum and classical resources
https://qiskit.github.io/qiskit-serverless/
Apache License 2.0
61 stars 27 forks source link

Job logs should be updated as the code is executed #1040

Closed nonhermitian closed 9 months ago

nonhermitian commented 9 months ago

What is the expected behavior?

Currently the the job logs do not update until a program is finished. This means one cannot track the progress of a function as it goes through its steps. As functions can get arbitrarily long, it would be nice to be able to rack the status of them as they go through.

IceKhan13 commented 9 months ago

ref: https://github.com/Qiskit-Extensions/quantum-serverless/blob/9a56a13d53405b2bdbbeb7a654d903de8f76f443/gateway/api/management/commands/update_jobs_statuses.py#L56

Need to update logs on each poll