Skip to content

Conversation

@macqueen
Copy link
Contributor

@macqueen macqueen commented Apr 21, 2017

CELERY_QUEUES = [
Queue('alerts', routing_key='alerts'),
Queue('auth', routing_key='auth'),
Queue('commits', routing_key='commits'),
Copy link
Contributor

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)

Copy link
Contributor

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,
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

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,
Copy link
Contributor

Choose a reason for hiding this comment

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

🌮

@macqueen macqueen merged commit cc4bcc2 into master Apr 25, 2017
@macqueen macqueen deleted the celery-commits branch April 25, 2017 18:01
@github-actions github-actions bot locked and limited conversation to collaborators Dec 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants