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

Refactored. #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions laikad.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

'''
laikad

Command line program for running the broker and worker processes for the Laika
framework. This program becomes the supervisor process that ensures the broker
and worker processes remain up and alive (replaces those that go missing).
Expand Down Expand Up @@ -115,10 +114,8 @@ def get_option(option, default=''):
def shutdown_handler(proc, signum, frame):
'''
Signal handler for shutting down the given process.

Arguments:
proc -- The process that should be shutdown.

'''
logging.debug("Shutdown handler triggered (%d)", signum)
proc.shutdown()
Expand Down Expand Up @@ -463,10 +460,8 @@ def perform_scan(self, poll_timeout):
'''
Wait for work from broker then perform the scan. If timeout occurs, no
scan is performed and no result is returned.

Arguments:
poll_timeout -- The amount of time to wait for work.

Returns:
The result of the scan or None if no scan was performed.
'''
Expand Down Expand Up @@ -977,4 +972,3 @@ def shutdown(signum, frame):

if __name__ == '__main__':
main()