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

refactor: event consumer #520

Merged
merged 8 commits into from
Sep 1, 2023
Merged

refactor: event consumer #520

merged 8 commits into from
Sep 1, 2023

Conversation

adityathebe
Copy link
Member

No description provided.

@adityathebe adityathebe marked this pull request as ready for review August 28, 2023 05:50
events/event_queue.go Outdated Show resolved Hide resolved
cmd/server.go Outdated Show resolved Hide resolved
@adityathebe adityathebe mentioned this pull request Aug 28, 2023
@adityathebe
Copy link
Member Author

@moshloop Can we merge this?

}

// onApprovalUpdated is called when the playbook spec approval is updated
func onApprovalUpdated(ctx *api.Context, playbookID string) error {
Copy link
Member

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

Copy link
Member Author

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.
@adityathebe
Copy link
Member Author

@moshloop need to merge this as well. The sync consumer PR was merged into this branch.

@moshloop moshloop merged commit c371eaf into main Sep 1, 2023
5 checks passed
@moshloop moshloop deleted the refactor/event-consumer branch September 1, 2023 10:29
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.

3 participants