Skip to content

Conversation

@artemklevtsov
Copy link
Contributor

@artemklevtsov artemklevtsov commented Jul 31, 2025

Hi,

Added exit processor. to stop process with desired status code.
Fix redpanda-data/connect#3196.

Testing:

# test.yaml
input:
  generate:
    count: 1
    mapping: root = 1

pipeline:
  processors:
    - exit: 0

output:
  stdout: {}
$  ./benthos run -s pipeline.processors.0.exit=1 test.yaml 
$ echo $?
# 1
$  ./benthos run -s pipeline.processors.0.exit=0 test.yaml 
$ echo $?
# 0

Regards.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow configurable exit code for the crash processor

1 participant