|
a |
|
b/test.py |
|
|
1 |
#!/usr/bin/python !/usr/bin/env python |
|
|
2 |
# -*- coding: utf-8 -* |
|
|
3 |
|
|
|
4 |
# !!!!!!!!! FIRST CONFIGURE SETTINGS.YAML TO MATCH YOUR NEEDS !!!!!!!!!! |
|
|
5 |
# Simple script to run the Pipeline Wrapper, |
|
|
6 |
|
|
|
7 |
|
|
|
8 |
import logging |
|
|
9 |
from tasks import taskCoordinator |
|
|
10 |
from config import settings |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
#logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(message)s') |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
logging.basicConfig( |
|
|
17 |
level=logging.DEBUG, |
|
|
18 |
format="%(asctime)s - %(message)s", |
|
|
19 |
handlers=[ |
|
|
20 |
logging.FileHandler("%s" % settings['log_path']), |
|
|
21 |
logging.StreamHandler() |
|
|
22 |
]) |
|
|
23 |
TaskManager = taskCoordinator() |
|
|
24 |
TaskManager.print_pipeline() |
|
|
25 |
#TaskManager.run() |
|
|
26 |
TaskManager.run() |
|
|
27 |
exit(1) |