Skip to content

Conversation

@amimart
Copy link
Contributor

@amimart amimart commented Oct 10, 2025

Purpose of Changes and their Description

The PR brings RPC queries allowing to inspect the x/scheduler module state:

  • Tasks: Retrieve all the tasks in the state, scheduled or not;
  • Task: Retrieve the details of a task given its id;
  • ScheduledTasks: Retrieve the currently scheduled tasks for a specific type, not the one created with no execution scheduled;
  • Handlers: Retrieve the currently registered task handlers, in their execution order;

⚠️ The Handlers query is marked as unsafe as it is not based on any state but on the currently registered task handlers.

There are some pagination and filtering options on the Tasks and ScheduledTasks queries.

For each RPC query a related CLI query command has been added.

Are these changes tested and documented?

  • If tested, please describe how. If not, why tests are not needed.
  • If documented, please describe where. If not, describe why docs are not needed.
  • Added to Unreleased section of CHANGELOG.md?

Still Left Todo

  • Tests
  • CLI

@github-actions
Copy link

github-actions bot commented Oct 10, 2025

The latest Buf updates on your PR. Results from workflow Buf Linter / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed⏩ skippedOct 21, 2025, 3:20 PM

@amimart amimart force-pushed the arnaud/design-scheduler branch from a96e5b7 to ee375bb Compare October 20, 2025 17:47
@amimart amimart force-pushed the arnaud/engn-4254-exposes-rpc-queries-on-xscheduler branch from 7373341 to d8934df Compare October 20, 2025 20:01
@amimart amimart force-pushed the arnaud/design-scheduler branch from 9b9c432 to ada7012 Compare October 20, 2025 20:27
@amimart amimart force-pushed the arnaud/engn-4254-exposes-rpc-queries-on-xscheduler branch from d8934df to e23f349 Compare October 20, 2025 20:34
@amimart amimart changed the base branch from arnaud/design-scheduler to arnaud/engn-4255-expose-events-on-xscheduler-module October 21, 2025 06:29
@amimart amimart force-pushed the arnaud/engn-4255-expose-events-on-xscheduler-module branch from c5936b1 to c487365 Compare October 21, 2025 12:32
@amimart amimart force-pushed the arnaud/engn-4254-exposes-rpc-queries-on-xscheduler branch from e23f349 to 51947c1 Compare October 21, 2025 15:05
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.

3 participants