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

fix: add API check before doing job queue reset #1074

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

pedrolamas
Copy link
Member

@pedrolamas pedrolamas commented Mar 23, 2023

Only try to use the reset Boolean parameter in the POST endpoint of the job_queue component if the Moonraker API version is 1.1.0 or above.

If not, first call the DELETE with "all" to clear the job queue.

Fixes #1073

Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
@pedrolamas pedrolamas added the GH - Bug Something isn't working label Mar 23, 2023
@pedrolamas pedrolamas added this to the 1.24 milestone Mar 23, 2023
@pedrolamas pedrolamas merged commit 475a92f into fluidd-core:develop Mar 23, 2023
@pedrolamas pedrolamas deleted the pedrolamas/fix-1073 branch March 23, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GH - Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reordering jobs in the Job Queue causes duplication
1 participant