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

Proposal: add jobs with limited runs #215

Open
smarques opened this issue Feb 5, 2024 · 1 comment
Open

Proposal: add jobs with limited runs #215

smarques opened this issue Feb 5, 2024 · 1 comment

Comments

@smarques
Copy link

smarques commented Feb 5, 2024

Hi, thank you for this library.
I am considering using this to build a 'sequencer' for OSC calls.
To fit my use case, I would need to add some jobs that run at a given interval but also to set a limit to the number of runs.
So I created a job class extending SimpleIntervalJob that accepts an extra option with the number of runs and just stops after the nth run.
I suppose there would be other ways to achieve this, but I couldn't figure them out :)
Maybe this is outside the use case of this library, but if you are interested in a PR let me know!

Thank you again

@kibertoad
Copy link
Owner

@smarques Sounds good! Would you be open to send a PR for this?

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

No branches or pull requests

2 participants