Skip to content

Integrate modified scheduler to reversible-transfers pallet#15

Merged
dastansam merged 38 commits intomainfrom
feat/clone-scheduler
Jun 10, 2025
Merged

Integrate modified scheduler to reversible-transfers pallet#15
dastansam merged 38 commits intomainfrom
feat/clone-scheduler

Conversation

@dastansam
Copy link
Contributor

@dastansam dastansam commented May 14, 2025

Code is ready for review, I am working on the tests, benchmarks fixes

For reviewers: first commit contains the scheduler pallet forked as is, and other commits are granular changes to the logic and enhancements

@dastansam dastansam changed the title Feat/clone scheduler feat: scheduler pallet with timestamp May 14, 2025
@dastansam dastansam force-pushed the feat/explicit-reverser branch from 3586218 to cd4bd93 Compare May 14, 2025 12:05
@dastansam dastansam marked this pull request as ready for review May 14, 2025 12:09
@dastansam dastansam changed the title feat: scheduler pallet with timestamp feat: make scheduler pallet work with timestamp and integrate with reversible transfers May 14, 2025
@dastansam dastansam self-assigned this May 14, 2025
@dastansam dastansam requested review from czareko, illuzen, n13 and vrom911 May 14, 2025 12:45
@illuzen
Copy link
Contributor

illuzen commented May 16, 2025

Overall looks good, I'm impressed you got that abstraction BlockNumberOrTimestamp to work...I'm a bit concerned about these TODOs and the fact that the scheduler can fail to schedule things.

Copy link
Collaborator

@czareko czareko left a comment

Choose a reason for hiding this comment

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

@dastansam , I can't build your branch
error[E0046]: not all trait items implemented, missing:Moment, TimeProvider, TimestampBucketSize--> /Users/cezaryo/quantus/github/backbone/runtime/src/configs/mod.rs:267:1 | 267 | impl pallet_scheduler::Config for Runtime { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missingMoment, TimeProvider, TimestampBucketSizein implementation | = help: implement the missing item:type Moment = /* Type /;= help: implement the missing item:type TimeProvider = / Type /;= help: implement the missing item:type TimestampBucketSize = / Type */;`

For more information about this error, try rustc --explain E0046.
error: could not compile resonance-runtime (lib) due to 1 previous error
`

Base automatically changed from feat/explicit-reverser to main May 26, 2025 10:26
@dastansam dastansam changed the base branch from main to scheduler-logic June 4, 2025 15:34
@dastansam dastansam changed the title feat: make scheduler pallet work with timestamp and integrate with reversible transfers Integrate modified scheduler to reversible-transfers pallet Jun 4, 2025
@dastansam dastansam force-pushed the feat/clone-scheduler branch from 941b3d4 to e6b1c60 Compare June 4, 2025 15:44
@dastansam dastansam force-pushed the feat/clone-scheduler branch from a1cfdbb to de0bb9b Compare June 9, 2025 17:28
@dastansam dastansam changed the base branch from scheduler-logic to main June 9, 2025 17:40
@dastansam dastansam requested a review from czareko June 9, 2025 17:41
type Hasher: Hash;

/// Schedule a task with a name, dispatch time, and optional periodicity.
fn schedule_named(
Copy link
Collaborator

@n13 n13 Jun 10, 2025

Choose a reason for hiding this comment

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

having periodic is quite fancy. I guess they will consume more and more fees?

Do they take fees from the sender every time they execute? I guess they would have to?

I mean I know that's in the OG scheduler already just wondering how it works.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do they take fees from the sender every time they execute? I guess they would have to?

yes they do. but it keeps retrying if the last dispatch fails due to low fees. once the max retries are exhausted it won't do anything

@n13
Copy link
Collaborator

n13 commented Jun 10, 2025

LGTM, just needs the conflicts resolved (new checkins I am sure)

@dastansam dastansam requested a review from n13 June 10, 2025 06:16
Copy link
Collaborator

@n13 n13 left a comment

Choose a reason for hiding this comment

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

LGTM

@dastansam dastansam merged commit b76b027 into main Jun 10, 2025
2 checks passed
@dastansam dastansam deleted the feat/clone-scheduler branch August 19, 2025 08:58
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.

4 participants