Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update read_until to close the input after an idle timeout #2249

Closed
eduardodbr opened this issue Nov 19, 2023 · 0 comments · Fixed by #2263
Closed

Update read_until to close the input after an idle timeout #2249

eduardodbr opened this issue Nov 19, 2023 · 0 comments · Fixed by #2263

Comments

@eduardodbr
Copy link
Contributor

read_until closes the input once a consumed message passes a specific condition based on a query. Here I propose a new field idle_timeout that specifies the maximum amount of time without receiving new messages after which the input is closed.

input:
  label: ""
  read_until:
    input: null
    check: ""
    restart_input: false
    idle_timeout: "5s"

The configuration of 'check' and 'idle_timeout' could be used either independently or collectively, resulting in the termination of the input upon the first occurrence.

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

Successfully merging a pull request may close this issue.

2 participants