Page MenuHome

run.py
No OneTemporary

import time
import argparse
from application.config_base import Config
parser = argparse.ArgumentParser(description='Run the Flamenco worker.')
parser.add_argument('-l', '--loop', default=5,
help='Loop time. Defaul is 5 seconds.')
parser.add_argument('-m', '--manager', default='localhost:7777')
args = parser.parse_args()
# Override base config with command line options
from application.config_base import Config
Config.FLAMENCO_MANAGER = args.manager
if __name__ == "__main__":
from application.controllers import worker_loop
print ("""
__ _
/ _| |
| |_| | __ _ _ __ ___ ___ _ __ ___ ___
| _ | |/ _` | '_ ` _ \ / _ \ '_ \ / __/ _ \\
| | | | (_| | | | | | | __/ | | | (_| (_) |
|_| |_|\__,_|_| |_| |_|\___|_| |_|\___\___/
""")
while True:
worker_loop()
time.sleep(float(args.loop))

File Metadata

Mime Type
text/x-python
Expires
Sat, Jan 29, 6:15 AM (1 d, 23 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a8/18/ccafc49fb42ee20100c34b471ca3

Event Timeline