phac-nml / irida-next

IRIDA Next
https://phac-nml.github.io/irida-next/
Apache License 2.0
8 stars 3 forks source link

WorkflowExecution: Change state to enum and add in running state #558

Closed ericenns closed 5 months ago

ericenns commented 5 months ago

Problem

Currently WorkflowExecution state attribute is a string which means we had to add a bunch of state? methods to help ease checking state, if we change to enum as the type then those methods are automatically available and we don't need to define them.

Currently once a WorkflowExecution is sent to WES we update the state to submitted this state doesn't changed untill it errors or is completing. Instead inside of the WorkflowExecutions::StatusService we should update the state to running when the state returned from WES is RUNNING.

Acceptance Criteria