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

refactor(nns): Refactor prune following to use timer task #4286

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jasonz-dfinity
Copy link
Contributor

Why

The timer task library has functionalities to collect metrics on the tasks, so refactoring tasks to use the library helps with observability.

What

  • Define a PruneSomeFollowingTask as a RecurringSyncTask and schedule it in schedule_tasks
  • Change the scheduling from cansiter.rs to schedule_tasks

@jasonz-dfinity jasonz-dfinity requested a review from a team as a code owner March 7, 2025 23:29
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

If this pull request affects the behavior of any canister owned by
the Governance team, remember to update the corresponding
unreleased_changes.md file(s).

To acknowldge this reminder (and unblock the PR), dismiss this
code review by going to the bottom of the pull request page, and
supply one of the following reasons:

  1. Done.

  2. No canister behavior changes.

Base automatically changed from jason/enable-timer-task-metrics to master March 8, 2025 00:13
@jasonz-dfinity jasonz-dfinity force-pushed the jason/timer-task-prune branch from 6a3a37b to 4f7348e Compare March 10, 2025 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants