-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add task scheduling system to metagov-core #19
Comments
One possibility is to use a celery schedule in Metagov Core, and allow Metagov Plugins to register task functions. Then the Plugin author doesn't have to worry about how the polling works.
We need to be able to dynamically add and and remove scheduled tasks without restarting Django or Celery, as well as maybe dynamically changing the schedules (hourly/daily/etc) based on the plugin config. |
I think it would be fantastic for metagov to implement polling - it would make things much easier for plugin authors. I don't really know enough about this topic to make any recommendations, though. |
Just to clarify, this meaning of "poll" is "to check", not "to conduct a
survey or questionnaire", right?
…On Fri, Apr 9, 2021 at 9:35 AM Shauna ***@***.***> wrote:
I think it would be fantastic for metagov to implement polling - it would
make things much easier for plugin authors. I don't really know enough
about this topic to make any recommendations, though.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHA5PFQKANKU7FO5WOAGQLTH37DDANCNFSM42TMT3LA>
.
|
Yes, checking, not surveying. |
The instructions to Drivers for how to perform async governance processes was made simpler from this change: https://docs.metagov.org/en/latest/driver_tutorial.html#performing-governance-processes The instructions for Metagov installation was made more complicated, because of the need to set up Celery: https://docs.metagov.org/en/latest/installation.html |
[updated]
Requirements
Add a scheduling system in metagov-core. Enable Plugin authors to access the scheduler for these 2 purposes:
Possible tools to use
Celery, django-apscheduler
Things to consider:
closing_at
date?N communities * M listener plugins * P governance processes
[old]
The current "listener" interface requires that the external platform already has support for web hooks, and that it emits web hooks for all the events that the governance author cares about.
Problem: not all platforms have support for webhooks!
Alternative to webhooks: the alternative to webhooks is some kind of "pull" API where we fetch recent events from an API at regular intervals. This is what PolicyKit does using Celery tasks (with RabbitMQ broker). How can we make it easy for plugin authors to implement something like that? What technology should we use?
The text was updated successfully, but these errors were encountered: