Skip to content

Better "on limit exit code" managment for messenger worker vs supervisor #42029

@quazardous

Description

@quazardous

Description

With autorestart=unexpected and exitcodes=0 Supervisor don't restart a program if exit code is 0 (wich is cool because it's what we need).

But when using workers with limits (memory or time), the worker shuts down with a 0 exit code ans supervisor won't restart it (that's not cool).

So maybe adding a way to specify the "on limit exit code" would be usefull. like --on-limit-exit-code 1

Example

bin/console messenger:consume -vv --time-limit=3600 --on-limit-exit-code=1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions