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

Build queue_url without database when maintenance mode is enabled #58

Merged
merged 1 commit into from
Oct 4, 2017

Conversation

eagletmt
Copy link
Member

@eagletmt eagletmt commented Oct 3, 2017

Basically, we should use stored queue URL as the documentation[1]
suggests. But when the Barbeque's database is temporarily unavailable
due to scheduled maintenance, we have to build queue URL without the
database. The maintenance mode is enabled by
BARBEQUE_DATABASE_MAINTENANCE and AWS_ACCOUNT_ID variable.
[1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-message-identifiers.html#sqs-general-identifiers

@cookpad/dev-infra please review

Basically, we should use stored queue URL as the documentation[1]
suggests. But when the Barbeque's database is temporarily unavailable
due to scheduled maintenance, we have to build queue URL without the
database.  The maintenance mode is enabled by
BARBEQUE_DATABASE_MAINTENANCE and AWS_ACCOUNT_ID variable.
[1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-message-identifiers.html#sqs-general-identifiers
@taiki45
Copy link

taiki45 commented Oct 3, 2017

The maintenance mode is enabled by
BARBEQUE_DATABASE_MAINTENANCE and AWS_ACCOUNT_ID variable.

[nits] and with AWS_REGION variable?

@eagletmt
Copy link
Member Author

eagletmt commented Oct 3, 2017

AWS_REGION is implicitly required independently of this patch because Barbeque creates Aws::SQS::Client without any arguments.

@eagletmt eagletmt merged commit e5f8664 into cookpad:master Oct 4, 2017
@eagletmt eagletmt deleted the db-maint branch October 4, 2017 05:19
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