Skip to content

Conversation

@sbidoul
Copy link
Member

@sbidoul sbidoul commented Feb 28, 2025

FW port of #716

AnizR and others added 2 commits February 28, 2025 08:54
…eue jobs in timeout

[IMP] queue_job: increment 'retry' when re-queuing job that have been killed
A model is better than a manually managed table as it will
protect the table from deletion by database_cleanup.
@OCA-git-bot
Copy link
Contributor

Hi @guewen,
some modules you are maintaining are being modified, check this out!

Copy link
Contributor

@AnizR AnizR left a comment

Choose a reason for hiding this comment

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

Thanks for the port forward!

No remarks to do regarding the logic, it still works: queue_job isn't different between v16 and v17.

Small question: Shouldn't we need to change the module version since we are adding a migration script?

@sbidoul
Copy link
Member Author

sbidoul commented Feb 28, 2025

Shouldn't we need to change the module version since we are adding a migration script?

I was thinking to merge with a minor bump, but changing it explicitly is safer. Done.

Copy link
Contributor

@AnizR AnizR left a comment

Choose a reason for hiding this comment

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

Ok, nice. Everything looks good to me now 👍

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@sbidoul
Copy link
Member Author

sbidoul commented Mar 17, 2025

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 17.0-ocabot-merge-pr-748-by-sbidoul-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 7b8906e into OCA:17.0 Mar 17, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at f327ed0. Thanks a lot for contributing to OCA. ❤️

state=(
CASE
WHEN
max_retries IS NOT NULL AND

Choose a reason for hiding this comment

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

Maybe there's a problem here? max_retries can be 0 and is well documented that it has to retry forever...

Copy link
Member Author

Choose a reason for hiding this comment

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

Possibly, indeed. cc/ @AnizR

Copy link
Member

Choose a reason for hiding this comment

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

There's a possible solution in #816, mind taking a look?

@sbidoul @AnizR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants