[request] add schedule processor
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go
- Domain
- stream-processing
Research direction
Start by reviewing the existing generate input and read_until behavior described in the example, then compare the two proposed scheduling approaches: nesting an input under generate or adding a schedule input. Done means a tested way to repeat child input on an interval or cron without an external scheduler, including the paginated HTTP use case.
Written by the indexing model from the issue text.
Description
Hi,
It would be nice to add schedule processor to consume the child input with defined interval or cron.
Use case: read paginated http response with interval.
I can do it only with external scheduler (like cron) now. Or maybe is it possible with current capabilities?
Example:
input:
# need repeat this block every hour
read_until:
check: '@offset >= 5'
input:
generate:
count: 0
interval: 1s
mapping: 'root = null'
processors:
- mapping: |
meta n = 5
meta offset = counter(min: 0)
- http:
url: https://httpbin.org/links/${! metadata("n") }/${! metadata("offset") }
verb: GET
pipeline:
processors:
- xml:
operator: to_json
- mapping: |
root = json("html.body.a")
- unarchive:
format: json_array
- mutation: |
root.page = @offset
output:
stdout: {}
Possible solutions:
- add
inputfield to thegenerateinput - add
scheduleinput
- Dominant language
- Go
- Stars
- 571
- Forks
- 121
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 15
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from redpanda-data/benthos
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
redpanda-data/benthos#404 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
redpanda-data/benthos#503 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
redpanda-data/benthos#502 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 72/100
redpanda-data/benthos#481 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
redpanda-data/benthos#469 ·
Maintainers usually reply within 1 day
All issues in redpanda-data/benthos
Similar issues
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
DataDog/dd-trace-go#5469 ·
Maintainers usually reply within 1 day
-
bug tests
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
l3montree-dev/devguard#3101 ·
Maintainers usually reply within 1 day
-
area:*of bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
oapi-codegen/oapi-codegen#2593 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 85/100
DaoCloud/DaoCloud-docs#7432 ·
Maintainers usually reply within 1 day