Skip to content

Allow configurable exit code for the crash processor #3196

Open
@heikkilamarko

Description

@heikkilamarko

Hi.

About the crash processor that was introduced in v4.47.0:
https://github.com/redpanda-data/connect/releases/tag/v4.47.0

Based on the current implementation, the exit code is always 1:
https://github.com/redpanda-data/benthos/blob/4cd5b09eff3eb816003c69323bbc54942883a1a3/internal/impl/pure/processor_crash.go

It would be nice to be able to specify the exit code as a field of this processor, similar to how you can do it with Go's standard library using os.Exit(code).

Also, consider adding some examples of the crash processor to the error handling documentation here:
https://docs.redpanda.com/redpanda-connect/configuration/error_handling/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementprocessorsAny tasks or issues relating specifically to processors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions