-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lwhite
committed
Feb 19, 2018
1 parent
ecc2a0d
commit 65bddb2
Showing
4 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
#!/usr/bin/env python | ||
# -*- mode: python -*- | ||
import argparse | ||
from eventmq import conf | ||
from eventmq.scheduler import Scheduler | ||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser( | ||
description='Listen for scheduled jobs and run them') | ||
parser.add_argument('--config', '-C', type=str, nargs='?', | ||
parser = argparse.ArgumentParser( | ||
description='Listen for scheduled jobs and run them') | ||
parser.add_argument('--config', '-C', type=str, nargs='?', | ||
help='manually specify the location of eventmq.conf') | ||
|
||
args = parser.parse_args() | ||
args = parser.parse_args() | ||
|
||
if args.config: | ||
conf.CONFIG_FILE = args.config | ||
if args.config: | ||
conf.CONFIG_FILE = args.config | ||
|
||
s = Scheduler() | ||
s.scheduler_main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters