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

A570218846721951 health check #86

Open
wants to merge 6 commits into
base: eauctions-sandbox
Choose a base branch
from

Conversation

Scandie
Copy link

@Scandie Scandie commented Mar 2, 2018

This change is Reviewable

Copy link
Collaborator

@yarsanich yarsanich left a comment

Choose a reason for hiding this comment

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

А де тести на init_services та check_auction_workers?

logging.addLevelName(25, 'CHECK')


def check(self, msg, exc=None, *args, **kwargs):
Copy link
Collaborator

Choose a reason for hiding this comment

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

А docstring?

Copy link
Author

Choose a reason for hiding this comment

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

@yarsanich, додав.

worker_exceptions = check_auction_workers(self.config['main'])
if worker_exceptions:
exceptions.extend(worker_exceptions)
if exceptions:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Тобто з всих ти полюбому будеш raise робити першого ? І Ерори , якщо вони будуть, то вони будуть в порядку CouchDB, Scheduler, WebApp?

Copy link
Author

Choose a reason for hiding this comment

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

@yarsanich, так, в тому порядку ініціалізації, який був до цього.

AuctionsChronograph(config).run()
chronograph = AuctionsChronograph(config)
if params.check:
exit()
Copy link
Collaborator

Choose a reason for hiding this comment

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

sys.exit()?

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