Skip to content

Fix returning metrics from deleted runs#2038

Merged
jvstme merged 1 commit intomasterfrom
issue_2037_fix_stats
Nov 28, 2024
Merged

Fix returning metrics from deleted runs#2038
jvstme merged 1 commit intomasterfrom
issue_2037_fix_stats

Conversation

@jvstme
Copy link
Copy Markdown
Collaborator

@jvstme jvstme commented Nov 27, 2024

This commit fixes the bug when
/api/metrics/job/{run_name} would randomly
return metrics from a deleted run instead of the
active run with the same name.

It also includes a small optimization to only
fetch the latest job submission from the database
instead of filtering in runtime.

Fixes #2037

This commit fixes the bug when
`/api/metrics/job/{run_name}` would randomly
return metrics from a deleted run instead of the
active run with the same name.

It also includes a small optimization to only
fetch the latest job submission from the database
instead of filtering in runtime.
@jvstme jvstme requested a review from un-def November 27, 2024 21:32
@jvstme jvstme merged commit 4a7182a into master Nov 28, 2024
@jvstme jvstme deleted the issue_2037_fix_stats branch November 28, 2024 14:06
superprat pushed a commit to bahaal-tech/dstack that referenced this pull request Dec 20, 2024
This commit fixes the bug when
`/api/metrics/job/{run_name}` would randomly
return metrics from a deleted run instead of the
active run with the same name.

It also includes a small optimization to only
fetch the latest job submission from the database
instead of filtering in runtime.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: No metrics in dstack stats

2 participants