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

plugins? #1

Open
tloudon opened this issue May 19, 2018 · 1 comment
Open

plugins? #1

tloudon opened this issue May 19, 2018 · 1 comment

Comments

@tloudon
Copy link
Collaborator

tloudon commented May 19, 2018

Hey @aarontc ,

I think we should look at some kind of a plugin architecture here. I would like to have something for Twitter, something for email, something for maybe Slack, etc. If we just have a crontab run a simple ruby scripts; all of the logic for each announcement could be encapsulated in that plugin. So the crontab wouldn't need to keep track of what plugins are running when and the calling client code wouldn't have to know much about each plugin either.

Does something like that make sense to you? We could also just make several independent scripts that run and have some awareness of what's running in the crontab or main ruby script.

I don't want to think about this too much, but some kind of a plugin architecture was the first thing that came to mind.

Thanks!

//cc @danascheider

@aarontc
Copy link
Collaborator

aarontc commented May 20, 2018

@tloudon A few minutes of Googling suggests PerfectSched (https://github.com/treasure-data/perfectsched) may be a very suitable gem to drive the schedule. Plugin support is baked in, with the ability to specify task types, routes from types to class names, and data to initialize the worker class with.

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