Skip to content

New update status api

Mayank Saggar [Microsoft] requested to merge new-update-status-api into h2-ingestion

Added a new workflow api with UTs and ITs.

Update Workflow API with rest end point : /workflow/{workflowId}/workflowRun/{runId}/updateStatus

Takes a Json Payload: { "status": "running" }

Finds the workflowRunDoc and Updates the status. In case status is final like finished and failed it also updates the endTimeStamp on the doc.

ITs for the api:

  • One Success case when final state and one when non-final state.
  • Bad request when the payload is incorrect.
  • Not found request when WorkflowRun doesn't exist or Workflow doesn't exist.
  • Unauthorized case with no access token and no data access token.
  • Unauthorized when given invalid partition id.
Edited by Mayank Saggar [Microsoft]

Merge request reports

Loading