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

Optimize giveaway scheduling #96

Open
y9san9 opened this issue May 19, 2021 · 0 comments
Open

Optimize giveaway scheduling #96

y9san9 opened this issue May 19, 2021 · 0 comments
Labels
flaw Something could work better priority:normal

Comments

@y9san9
Copy link
Owner

y9san9 commented May 19, 2021

For now every scheduled giveaway produces a coroutine attached to it. The goal of the issue is to make this only with one coroutine and shared flow. Idea is to launch only one coroutine with the earliest giveaway and after schedule it, launch another coroutine with giveaways later.

Example: I'm scheduling giveaway in two days, bot launches coroutine since it is first schedule, next person then launches it's giveaway in one day, so my coroutine will be cancelled and his coroutine with one day delay will be started.

@y9san9 y9san9 added flaw Something could work better priority:normal labels May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaw Something could work better priority:normal
Projects
None yet
Development

No branches or pull requests

1 participant