Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prior to this change, running an instance of filebeat with the following configuration would result in an unstoppable instance. filebeat.inputs: - type: cel interval: 1m resource.url: https://api.ipify.org/?format=json program: | bytes(get(state.url).Body).as(body, { "events": [body.decode_json()] }) output.console.pretty: true This happens because the cel program evaluation method does not return the context cancellation error when a context is cancelled. We also don't check for cancellation except in the case that we have events or we have a limit policy in place, so add a check immediately after the return of the evaluation.
- Loading branch information