Implement workflow status for metrics update task #700
Labels
component/api-server
enhancement
New feature or request
p1
Critical bugs that prevent DT from being used, or features that must be implemented ASAP
size/S
Small effort
As part of #664, updating of the workflow status for the
METRICS_UPDATE
step must be implemented.Before
ComponentMetricsUpdateTask
andProjectMetricsUpdateTask
are executed, the tasks must check whether a workflow step of typeMETRICS_UPDATE
exists for the token associated with the event they receive (Event#getChainIdentifier
). If so, thestartedAt
timestamp of that step must be updated accordingly.Upon completion or failure of the task, the corresponding step's status must transition to either
COMPLETED
orFAILED
respectively. In case of a failure, thefailureReason
of the step must be populated.Note that both metrics tasks can be executed outside of a workflow, for example during the scheduled portfolio metrics update. The tasks thus need to be able to work without corresponding workflow step.
The text was updated successfully, but these errors were encountered: