-
Notifications
You must be signed in to change notification settings - Fork 11
/
agent.py
35 lines (25 loc) · 828 Bytes
/
agent.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/python
import sys
from client.tracer import TraceInserter
from utils.config_import import DistillerConfig
def main(config_file):
config = DistillerConfig(config_file, 'client')
if "trace" in config.operations:
tracer = TraceInserter(config)
while tracer.ready():
tracer.go()
'''if "minimize" in config.operations:
print "[ +D+ ] Checking for available minimization jobs."
minimizer = SeedMinimizer(config_file)
minimizer.wait()
while minimizer.is_job_available():
minimizer.go()
else:
print "[ +D+ ] No minimization jobs available."'''
def usage():
print "Usage:", sys.argv[0], "<config.yml>"
if __name__ == "__main__":
if len(sys.argv) != 2:
usage()
else:
main(sys.argv[1])