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

Asynchronous service for events created by plugins #30

Open
guillaumeaubert opened this issue Oct 4, 2015 · 0 comments
Open

Asynchronous service for events created by plugins #30

guillaumeaubert opened this issue Oct 4, 2015 · 0 comments

Comments

@guillaumeaubert
Copy link
Owner

Some plugins interface with external services (posting messages to Slack or creating Google Calendar events for example), which can occasionally go down. When that happens, either the plugin proceeds forward and the event gets lost, or the plugin escalates an error to the framework and the user can't continue with their git action.

To address this, App::GitHooks should offer an optional asynchronous event handling system for plugins, so that plugins can submit actions to it (for actions that aren't showstoppers), and the actions can be retried automatically later if they fail.

A possible design would be using Queue::DBI with a local SQLite database. Given the added prereqs, it may be easier to create a separate event queuing module for App::GitHooks, so that App::GitHooks leverages it when it is present, or continues with its current behavior of synchronous actions when that new module isn't installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant