-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
move commit fetching to celery task #5275
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
Conversation
769956a to
2104ec3
Compare
| CELERY_QUEUES = [ | ||
| Queue('alerts', routing_key='alerts'), | ||
| Queue('auth', routing_key='auth'), | ||
| Queue('commits', routing_key='commits'), |
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.
@JTCunning these is going to get picked up by a worker-glob worker, right?
We also might need to explicitly add the queue to federation. I don't fully remember how that works. (Should prob document)
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.
It will get picked up there, and I'm not completely sure we need to add it to the federation list unless we expect this to be heavily populated.
https://github.com/getsentry/ops/blob/master/cookbooks/getsentry/recipes/queue.rb#L86
| kwargs={ | ||
| 'release_id': self.id, | ||
| 'user_id': user.id, | ||
| 'refs': refs, |
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.
How large are these ref objects? Can we slim them down to just the bits we need? It seems we only use commit, repository, and previousCommit. Is there a lot of other junk piled on here?
If not, we're good. Otherwise, I'd want to slim this down before throwing into the queue.
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.
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.
🌮
| kwargs={ | ||
| 'release_id': self.id, | ||
| 'user_id': user.id, | ||
| 'refs': refs, |
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.
🌮
cc @benvinegar @kjlundsgaard @ckj @MaxBittker
#nochanges