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

Add retry mechanics to pallet-scheduler #3060

Merged
merged 44 commits into from
Feb 16, 2024

Commits on Jan 25, 2024

  1. Add option to retry task in scheduler

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    328d0cd View commit details
    Browse the repository at this point in the history
  2. Add unit tests for retry scheduler

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    6f56d9f View commit details
    Browse the repository at this point in the history
  3. Add benchmarks for retry scheduler

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    22800c5 View commit details
    Browse the repository at this point in the history
  4. Add some docs to retry functions

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    9315c2e View commit details
    Browse the repository at this point in the history
  5. Remove redundant clone

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    5bbd31e View commit details
    Browse the repository at this point in the history
  6. Add real weights to scheduler pallet

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    3eb8016 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9ecae46 View commit details
    Browse the repository at this point in the history
  8. ".git/.scripts/commands/bench-all/bench-all.sh" --pallet=pallet_sched…

    …uler
    command-bot committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    fcff15c View commit details
    Browse the repository at this point in the history
  9. ".git/.scripts/commands/bench-all/bench-all.sh" --pallet=pallet_sched…

    …uler
    command-bot committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    a8fd732 View commit details
    Browse the repository at this point in the history
  10. Merge branch 'master' of https://github.com/paritytech/polkadot-sdk i…

    …nto HEAD
    command-bot committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    3e6e77e View commit details
    Browse the repository at this point in the history
  11. ".git/.scripts/commands/bench-all/bench-all.sh" --pallet=pallet_sched…

    …uler
    command-bot committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    9120d60 View commit details
    Browse the repository at this point in the history
  12. ".git/.scripts/commands/bench-all/bench-all.sh" --pallet=pallet_sched…

    …uler
    command-bot committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    4167d6f View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Use TaskAddress in set_retry

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    816906a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8a28ea5 View commit details
    Browse the repository at this point in the history
  3. Add prdoc

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    900d2d5 View commit details
    Browse the repository at this point in the history
  4. Refactor agenda query in set_retry

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    05cbdfc View commit details
    Browse the repository at this point in the history
  5. Minor renames and fixes

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    5fc62f4 View commit details
    Browse the repository at this point in the history
  6. Refactor schedule_retry return type

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    5e305e1 View commit details
    Browse the repository at this point in the history
  7. Implement ensure_privilege

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    5943dcc View commit details
    Browse the repository at this point in the history
  8. Add event for setting retry config

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    690f2b8 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2024

  1. Make retry fail if insufficient weight

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    4a81417 View commit details
    Browse the repository at this point in the history
  2. Remove redundant weight parameter in set_retry

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    438effb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d048760 View commit details
    Browse the repository at this point in the history
  4. Add test for dropping insufficient weight retry

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    3c2b540 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7a39a69 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2024

  1. Clean up retry config on cancel

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    2e8f954 View commit details
    Browse the repository at this point in the history
  2. Small refactor

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    7dfb517 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2e26707 View commit details
    Browse the repository at this point in the history
  4. Add docs to retry config map

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    40b567d View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2024

  1. Add retry count to RetrySet event

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    2b35465 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a43df52 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2024

  1. Make retries independent of periodic runs

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    9da58c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2976dac View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. Small refactoring

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    8ce66f7 View commit details
    Browse the repository at this point in the history
  2. Add cancel_retry extrinsics

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    dc9ef2e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    945a095 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2024

  1. Add e2e unit test for retry schedule

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    39eb209 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2290240 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2024

  1. Simplify schedule_retry

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    50a2010 View commit details
    Browse the repository at this point in the history
  2. Add docs for as_retry

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    e9cc27e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    497100c View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. Update doc comments for set_retry

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    863bec7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7a16648 View commit details
    Browse the repository at this point in the history
  3. Move common logic under do_cancel_retry

    Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
    georgepisaltu committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    b72da0c View commit details
    Browse the repository at this point in the history