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

Add a flux command for waiting a specific time #495

Closed
fsteeg opened this issue Aug 10, 2023 · 2 comments · Fixed by #559
Closed

Add a flux command for waiting a specific time #495

fsteeg opened this issue Aug 10, 2023 · 2 comments · Fixed by #559
Assignees

Comments

@fsteeg
Copy link
Member

fsteeg commented Aug 10, 2023

Use case is a workflow where we use open-http to POST records to an API. When working with large input data, we'd like to wait a short amount of time between each post to avoid creating too much load on the server. While this could be done with an additional option for open-http, perhaps a generic wait command, with the option to set the time would be the best approach?

@blackwinter
Copy link
Member

Does wait imply waiting for something? (Like wait-for-inputs for instance.)

Maybe sleep would be better? (Could also be a Fix function; see Catmandu.)

@TobiasNx
Copy link
Contributor

TobiasNx commented Sep 23, 2024

I would upvote this. It became relevant to me too when trying to scrape a website with to many requests but without getting banned but getting shortly blocked for the frequency of the requests.

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

Successfully merging a pull request may close this issue.

3 participants