-
Notifications
You must be signed in to change notification settings - Fork 10
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
TECH-1204 - Adding the health-check functionality to Chief-Keeper #15
Conversation
return func(*args, **kwargs) | ||
|
||
return wrapper | ||
|
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.
Does the file need to be closed after writing to it ? We don't what to have a leak, or exceed the ulimit.
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.
@jeannettemcd thanks, when with
is used Python creates a temporary context space and once Python exits from the with
block/context, the file is automatically closed
process_block()
method/tmp/health.log
health-check.sh
script which compares current UNIX timestamp with one in file/tmp/health.log
1
, if less --0
health-check.sh
as ECS task health-check