Skip to content

Call enhancer, carpool events#35

Open
frsaba wants to merge 35 commits intomfdz:pluginsfrom
frsaba:dev
Open

Call enhancer, carpool events#35
frsaba wants to merge 35 commits intomfdz:pluginsfrom
frsaba:dev

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