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 Support for Sliding Invisibility Timeouts #75

Open
KorsG opened this issue May 14, 2024 · 0 comments
Open

Add Support for Sliding Invisibility Timeouts #75

KorsG opened this issue May 14, 2024 · 0 comments

Comments

@KorsG
Copy link

KorsG commented May 14, 2024

Hi and thanks for a great library! :-)

This is a feature request to implement SlidingInvisibilityTimeout.

Every now and then we run into issues with the InvisibilityTimeout for "long-running" jobs, which gets cancelled when the timeout is reached and then requeued. If the job does not implement the CancellationToken properly, it keeps running in the background while the new job is enqueued and duplicate processing occurs - there are some remedies for that as well, but none without some caveats.
Increasing the timeout also has its caveats as it might result in jobs not being executed for many hours in case of hard-failure on server/process.

The PostgreSQL provider has the same issue, which also explains the issue better/in more detail, and how the SQLServer provider has solved it:

And there is a pull-request for implementing SlidingInvisibilityTimeout for inspiration if someone wants to implement it here:

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

No branches or pull requests

1 participant