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

CAA-2356: Cancel tasks implementation #221

Merged
merged 12 commits into from
Feb 25, 2025
Merged

CAA-2356: Cancel tasks implementation #221

merged 12 commits into from
Feb 25, 2025

Conversation

WiserSep
Copy link
Contributor

@WiserSep WiserSep commented Feb 5, 2025

Context

This PR adds functionality that will enable Canceling tasks in WAITING status. The usage here is that you scheduled a task in the future, but do not require it run anymore. This will set a tasks status to CANCELLED and will not run.

Checklist

@WiserSep WiserSep changed the title DRAFT: CAA-2356: Delete tasks DRAFT: CAA-2356: Delete tasks and cancel tasks Feb 5, 2025
@WiserSep WiserSep changed the title DRAFT: CAA-2356: Delete tasks and cancel tasks DRAFT: CAA-2356: Delete and cancel tasks Feb 5, 2025
@WiserSep WiserSep changed the title DRAFT: CAA-2356: Delete and cancel tasks CAA-2356: Delete and cancel tasks Feb 6, 2025
@WiserSep WiserSep marked this pull request as ready for review February 6, 2025 16:24
@WiserSep WiserSep requested a review from a team as a code owner February 6, 2025 16:24
@WiserSep WiserSep changed the title CAA-2356: Delete and cancel tasks CAA-2356: Cancel tasks implementation Feb 11, 2025
@WiserSep WiserSep requested a review from onukristo February 12, 2025 17:08
@WiserSep WiserSep enabled auto-merge (squash) February 21, 2025 10:40
@@ -534,4 +536,14 @@ protected static class MetricHandle {
private Meter meter;

}

public void registerTaskCancelled(String taskType) {
meterCache.counter(METRIC_TASKS_CANCELLED_COUNT, TagsSet.of(TAG_BUCKET_ID, resolveBucketId(null), TAG_TASK_TYPE, taskType))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to add the bucket tag at all.
Different (by name) metrics can have different set of tags.
And in dashboards the graphs will be "hand made" anyway.

@WiserSep WiserSep merged commit 44dcda3 into master Feb 25, 2025
13 checks passed
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.

2 participants