Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

store function and wrong expiration #162

Open
pavels opened this issue Mar 23, 2021 · 0 comments
Open

store function and wrong expiration #162

pavels opened this issue Mar 23, 2021 · 0 comments

Comments

@pavels
Copy link

pavels commented Mar 23, 2021

If you use store function in the worker and worker has no custom expiration set, the expiration will be reset to 30 minutes. If the job finishes before expiration, the correct expiration from ServerMiddleware is set and all is good. But if the job takes more than 30 minutes after store and no other status call is used, it will expire.

It is due to implementation in

store_for_id @provider_job_id || @job_id || @jid, hash, @expiration
which only uses expiration from the worker itself

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant