Skip to content

[Bug]: Jobs are not being processed in a long running sqlite server #58

@IgnisDa

Description

@IgnisDa

What happened?

Hi! I recently updated apalis from 0.7.4 to 1.0.0-rc.4 and have been noticing reports on Ryot's github and discord about jobs not being processed (example). I also switched the job backend from memory to sqlite. This was done because the rc versions don't allow cloning the MemoryStorage backend.

Earlier I thought that it was because the queue was being choked by a lot of jobs being added to it (which is by design). This queue has a concurrency of 1. To that end, I "sharded" the queue so that more jobs are processed in parallel (commit).

But people are still reporting this issue, so this was not the fix. I am stumped on what may be the actual issue.

Any suggestions on what I can do to debug this issue of jobs stopped being processed after some time?

Expected behavior

Jobs to be processed correctly.

Steps to reproduce

I have a standard apalis setup (https://github.com/IgnisDa/ryot/blob/2074b8e72d295a9bd4e3deaffdc2fd8812a802aa/apps/backend/src/main.rs#L187).

Minimal code example

Version

1.0.0-rc.x

Environment

  • OS: Any
  • Rust version: 1.93.1
  • Cargo version: 1.93.1

Relevant log output

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions