CC-5709 / CC-5705 : Airtime Analyzer

* Finished the skeleton of the airtime_analyzer service.
* Basic round-robin, reliable AMQP messaging works.
* Using multiprocess arch so the daemon survives analyzer crashes and
  avoids failures propagating to other nodes.
* Basic metadata extractor using Mutagen is done.
* HTTP requests to the File API to are next to come...
This commit is contained in:
Albert Santoni 2014-03-05 12:15:25 -05:00
parent b6dd2e3152
commit a6a64a2b9e
15 changed files with 411 additions and 0 deletions

View file

@ -0,0 +1,21 @@
#!/usr/bin/env python
import daemon
import argparse
import airtime_analyzer as aa
VERSION = "1.0"
print "Airtime Analyzer " + VERSION
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--daemon", help="run as a daemon", action="store_true")
args = parser.parse_args()
if args.daemon:
with daemon.DaemonContext():
analyzer = aa.AirtimeAnalyzerServer()
else:
# Run without daemonizing
analyzer = aa.AirtimeAnalyzerServer()