Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement workflow status for metrics update task #700

Closed
Tracked by #664
nscuro opened this issue Jul 25, 2023 · 0 comments · Fixed by DependencyTrack/hyades-apiserver#250
Closed
Tracked by #664

Implement workflow status for metrics update task #700

nscuro opened this issue Jul 25, 2023 · 0 comments · Fixed by DependencyTrack/hyades-apiserver#250
Assignees
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

Comments

@nscuro
Copy link
Member

nscuro commented Jul 25, 2023

As part of #664, updating of the workflow status for the METRICS_UPDATE step must be implemented.

Before ComponentMetricsUpdateTask and ProjectMetricsUpdateTask are executed, the tasks must check whether a workflow step of type METRICS_UPDATE exists for the token associated with the event they receive (Event#getChainIdentifier). If so, the startedAt 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 or FAILED respectively. In case of a failure, the failureReason 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.

@nscuro nscuro added 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 component/api-server labels Jul 25, 2023
@nscuro nscuro added this to Hyades Jul 25, 2023
@nscuro nscuro moved this to Todo in Hyades Jul 25, 2023
@VithikaS VithikaS self-assigned this Jul 26, 2023
@nscuro nscuro moved this from Todo to In Progress in Hyades Jul 27, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Hyades Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants