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

Feat stateless webhooks worker #1150

Merged
merged 4 commits into from
May 18, 2021
Merged

Conversation

eldadfux
Copy link
Member

What does this PR do?

Drops all DB related stuff from the webhooks worker and just pass the relevant data from the API point where we trigger the task for the worker?

The worker is only accessing the db to fetch the project's webhooks list which is already available to us in the relevant API scope. This change will increase the size of the task payload but will reduce database queries, improve speed, and make the webhooks worker completely independent.

Test Plan

Leverage e2e tests

Related PRs and Issues

N/A

Have you read the Contributing Guidelines on issues?

Yes

Copy link
Member

@christyjacob4 christyjacob4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @eldadfux

@eldadfux eldadfux merged commit 4ff892d into 0.8.x May 18, 2021
@eldadfux eldadfux deleted the fect-stateless-webhooks-worker branch May 22, 2021 23:25
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.

None yet

3 participants