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

store function and wrong expiration #162

Description

@pavels

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions