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

1 second delay before executing new tasks #142

Open
Ughuuu opened this issue Feb 27, 2025 · 1 comment · May be fixed by #143
Open

1 second delay before executing new tasks #142

Ughuuu opened this issue Feb 27, 2025 · 1 comment · May be fixed by #143

Comments

@Ughuuu
Copy link

Ughuuu commented Feb 27, 2025

Right now, if you queue a task, and then right after the task is finished you queue another task, it will wait exactly 1 second before doing the second task (if only these 2 tasks are queued).
Either this could be set as configurable, or there could be a channel or an atomic bool or some notifying mechanism (eg. isNewTaskAvailable) so that the wait of 1s isn't needed, but instead there is a notification mechanism.

@Ughuuu Ughuuu changed the title 1 second before executing new tasks 1 second delay before executing new tasks Feb 27, 2025
@Ughuuu Ughuuu linked a pull request Feb 27, 2025 that will close this issue
@appleboy
Copy link
Member

appleboy commented Mar 9, 2025

I will take it.

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

Successfully merging a pull request may close this issue.

2 participants