Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/WorkflowExecuter/Services/WorkflowExecuterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ public async Task<bool> ProcessTaskUpdate(TaskUpdateEvent message)
if (message.Metadata.Any())
{
currentTask.ResultMetadata = message.Metadata;
await _workflowInstanceRepository.UpdateTaskAsync(workflowInstance.Id, currentTask.TaskId, currentTask);
}

await HandleOutputArtifacts(workflowInstance, message.Outputs, currentTask);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ Scenario Outline: Publish a valid Task Update event which updates the Task statu
| Failed |
| Canceled |

@TaskUpdate @ignore #Bug https://github.com/Project-MONAI/monai-deploy-workflow-manager/issues/279
@TaskUpdate
Scenario Outline: Publish a successful Task Update event which updates the Task status and copies the metadata
Given I have a clinical workflow Task_Status_Update_Workflow
And I have a Workflow Instance WFI_Task_Status_Update
And I have a Workflow Instance WFI_Task_Status_Update with no artifacts
When I publish a Task Update Message <updateMessage> with status Succeeded
Then I can see the status of the Task is updated
And I can see the Metadata is copied to the workflow instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void ThenTheMetadataIsCopied()
}
else
{
taskUpdated?.ResultMetadata.Should().AllBeEquivalentTo(DataHelper.TaskUpdateEvent.Metadata);
taskUpdated?.ResultMetadata.Should().BeEquivalentTo(DataHelper.TaskUpdateEvent.Metadata);
}
});
}
Expand Down