Skip to content

Make the post-processing task resilient to crashes #3879

Open

Description

@DodoLeDev

Is your feature request related to a problem? Please describe.

As discussed here, the Bleve indexing task requires a LOT of memory (and I don't understand why), which sometimes makes the container crash (I defined pretty restrictive memory limits). But once the container has restarted, the file is indefinitely blocked in a "processing" state, awaiting for an admin action (this one).

User-wide, that's really annoying. You upload a file. No errors. But since then, you're unable to open it, move it, delete it.

Describe the solution you'd like

Post-processing failures should state why it failed. And if it was due to a main process crash, then retry it. (for the Bleve indexing task, this may fix my problem)

To prevent crash loops (if retrying a task makes the process crash), this FR supposes a better post-processing crash handling.

Describe alternatives you've considered

A shady post-start script that executes the --resume admin command, but it was not really stable, so I removed it.

Additional context

Related discussions:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions