-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RHINENG-13972 pcp generator server setup (#506)
* RHINENG-13972 pcp generator server setup * keep other clowdapp dependencies intact to keep IQE tests running
- Loading branch information
1 parent
28785f5
commit fc6d635
Showing
4 changed files
with
48 additions
and
89 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import time | ||
from ros.lib.config import get_logger | ||
from prometheus_client import start_http_server | ||
from ros.lib.config import ROS_PCP_PROCESSOR_PORT | ||
|
||
|
||
logging = get_logger(__name__) | ||
|
||
|
||
class PCPGenerator: | ||
def __init__(self): | ||
pass | ||
|
||
def run(self): | ||
try: | ||
logging.info("Flask server running on port %s", ROS_PCP_PROCESSOR_PORT) | ||
while True: | ||
time.sleep(1) | ||
except Exception as err: | ||
logging.error(err) | ||
|
||
|
||
if __name__ == "__main__": | ||
start_http_server(ROS_PCP_PROCESSOR_PORT) | ||
processor = PCPGenerator() | ||
processor.run() |