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

Changes to pulseJobs documents collection during Job execution are reverted on document updates #44

Open
tiberioalunni opened this issue Jul 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@tiberioalunni
Copy link

Description

Hi,
will be nice if changes to document into pulseJobs collection are kept even if the updates occurs during execution of job.

For example if you update document filed "disabled" to true while job is running, on first update done by pulse library it will be reverted to its value at the begin of the execution.

I think that Pulse library internally before saving the document into pulseJobs has to read the actual state of job, or update only the fields actually the library needs to update (like lockedAt, progress, lastFinishedAt, ...)

What do you think about this enhancement?

Code example

No response

Additional context

No response

@tiberioalunni tiberioalunni added the bug Something isn't working label Jul 19, 2024
@code-xhyun
Copy link
Contributor

@tiberioalunni
Interesting, could you provide an example code that demonstrates this situation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants