-
Notifications
You must be signed in to change notification settings - Fork 2
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
refactor: event consumer #520
Conversation
@moshloop Can we merge this? |
playbook/pg_listeners.go
Outdated
} | ||
|
||
// onApprovalUpdated is called when the playbook spec approval is updated | ||
func onApprovalUpdated(ctx *api.Context, playbookID string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the only place the approvals are managed? We can't use pg_notify as the only source as we will miss event when incident commander is down
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right! I'll add new sync consumers but sync consumers are implemented in a later PR. I'll make the change there.
* feat: separate consumer for sync and async * fix: process sync consumers in a separate transaction * fix: skip auth to /kratos/* and return 401 if session id is not a UUID. * feat: add new sync handlers for playbook events * chore: set custom pgnotify timeout for event consumer.
@moshloop need to merge this as well. The sync consumer PR was merged into this branch. |
No description provided.