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

Support "worker queue" orginization of task processing #3

Open
rdpickard opened this issue Jan 25, 2021 · 0 comments
Open

Support "worker queue" orginization of task processing #3

rdpickard opened this issue Jan 25, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@rdpickard
Copy link
Owner

Currently tasks (fetch all mentions, loop over each mention, create response GIF in each iteration) processing combines the polling of Twitter and the running of the GoL simulation is in one loop. This is not conducive to "server-less" approach where each instance of the run is expected to be short lived, only for a min or two. See Heroku Scheduler or AWS Lambda documentation. An execution of one instance of the bot with the current implementation is likely to exceed the server-less period.

A worker queue organization where the polling of mentions is separated from the processing of GoL simulations will likely solve this.

@rdpickard rdpickard added the enhancement New feature or request label Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant