Skip to content

[Bug]: Make sure outputs are not returned if job status is not SUCCEEDED #8280

@wvangeit

Description

@wvangeit

Is there an existing issue for this?

  • I have searched the existing issues

Which deploy/s?

production aws (e.g. osparc.io)

Current Behavior

At the moment, function and study api can return job outputs even when the job is not completely finished. This can result in the returning of default values. Several measure could be taken to avoid this:

  • Make sure function outputs are only written to db if job status is SUCCEEDED
  • Make sure study job API doesnt return outputs if job is not SUCCEEDED
  • Clean the job outputs before a job is run. This could be done at the level of starting the study jobs / starting the computational jobs.

Possibly all of these should be implemented.

Expected Behavior

No job outputs are retrievable until job has succeeded

Steps To Reproduce

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugbuggy, it does not work as expected

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions