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

Call enhancer, carpool events #35

Open
wants to merge 35 commits into
base: plugins
Choose a base branch
from
Open

Call enhancer, carpool events #35

wants to merge 35 commits into from

Conversation

frsaba
Copy link

@frsaba frsaba commented Jul 29, 2024

Call to enhancer: with the enhancer separated to another FastAPI service, whenever a carpool is changed, a background task is created that calls the enhancer configured in enhancer_url and saves the new carpool to data/enhanced.

The Amarillo docker image has been separated into a base and a derived image. The base image only contains Amarillo with no plugins, while the derived image has the plugins included. This way plugins can be more easily interchanged/updated without recreating the entire image, and different deployments can use a different set of plugins with the same underlying base image.

Carpool event hook system: plugins can now register callbacks to be run when a carpool is created/updated/deleted, e.g the metrics plugin uses it to count the number of carpool changes with all of the necessary code encapsulated in the plugin itself. More events can be added later.

@frankgerhardt
Copy link
Member

@frsaba double check that all commits are in PR 34 and then remove this PR.

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 this pull request may close these issues.

2 participants