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

Few Jobs becoming orphaned #34

Open
diegotl opened this issue Nov 9, 2022 · 0 comments
Open

Few Jobs becoming orphaned #34

diegotl opened this issue Nov 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@diegotl
Copy link

diegotl commented Nov 9, 2022

Describe the bug

I'm using Queues with one remote Redis instance. Sometimes a few jobs to get orphaned, that means, they are stored but not listed in their queue list. Manually putting them into their corresponding list fixes, they get executed. In the logs, from the instance where jobs are dispatched, I get few errors like connection was closed unexpectedly that are always followed by command failed. I could not yet confirm this, but I suspect those failed attempts are causing orphan jobs.

To Reproduce

Not clear how to reproduce it, but one way to try would be: regularly dispatching jobs to a remote Redis instance and trying to cause some connection problems.

Expected behavior

Something to prevent or some periodic routine that fixes orphaned jobs, making sure they will be executed at some point.

Environment

  • Vapor Framework version: framework: 4.67.1
  • Vapor Toolbox version: main (6000cc5)
  • OS version: Ubuntu 20.04 (LTS) x64
  • Project compiled with Swift version 5.7.1 (swift-5.7.1-RELEASE)
@diegotl diegotl added the bug Something isn't working label Nov 9, 2022
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

1 participant