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

Split CloseAll/WithdrawAll iteration into chunks to prevent planner failures #4642

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

zbuc
Copy link
Member

@zbuc zbuc commented Jun 18, 2024

Describe your changes

The pcli tx position close-all and pcli tx position withdraw-all commands were failing to plan for me when I had a significant (100+) number of positions.

This PR splits them into chunks, currently 30 positions, and fixed the planning failures for me.

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    pcli only

@zbuc zbuc merged commit 1693c20 into main Jun 19, 2024
13 checks passed
@zbuc zbuc deleted the pcli_closeall_withdrawall branch June 19, 2024 17:02
conorsch pushed a commit that referenced this pull request Jun 20, 2024
…ailures (#4642)

## Describe your changes

The `pcli tx position close-all` and `pcli tx position withdraw-all`
commands were failing to plan for me when I had a significant (100+)
number of positions.

This PR splits them into chunks, currently 30 positions, and fixed the
planning failures for me.

## Checklist before requesting a review

- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > pcli only

(cherry picked from commit 1693c20)
conorsch pushed a commit that referenced this pull request Jun 20, 2024
…ailures (#4642)

## Describe your changes

The `pcli tx position close-all` and `pcli tx position withdraw-all`
commands were failing to plan for me when I had a significant (100+)
number of positions.

This PR splits them into chunks, currently 30 positions, and fixed the
planning failures for me.

## Checklist before requesting a review

- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > pcli only

(cherry picked from commit 1693c20)
@conorsch conorsch mentioned this pull request Jun 20, 2024
1 task
conorsch pushed a commit that referenced this pull request Jun 20, 2024
…ailures (#4642)

## Describe your changes

The `pcli tx position close-all` and `pcli tx position withdraw-all`
commands were failing to plan for me when I had a significant (100+)
number of positions.

This PR splits them into chunks, currently 30 positions, and fixed the
planning failures for me.

## Checklist before requesting a review

- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > pcli only

(cherry picked from commit 1693c20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants