-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import sys | ||
from loguru import logger | ||
from pulpo_messaging.kessel import Message | ||
from pulpo_messaging.kessel import Pulpo | ||
from pulpo_messaging.kessel import PulpoConfig | ||
from statman import Statman | ||
import random | ||
import argparse | ||
import time | ||
from tqdm import tqdm | ||
|
||
parser = argparse.ArgumentParser( | ||
prog='publish_sample_messages', | ||
description='Published a set of test messages to kessel') | ||
|
||
parser.add_argument('--config', type=str, help='path to config file') | ||
args = parser.parse_args() | ||
|
||
config = PulpoConfig().fromJsonFile(args.config).fromArgumentParser(args) | ||
pulpo = Pulpo(config) | ||
pulpo.initialize_queue_adapter() | ||
|
||
|
||
Statman.report(log_method=logger.info) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ statman == 1.4.5 | |
pulpo-config == 2.0.1 | ||
art == 6.1 | ||
greenstalk==2.0.2 | ||
loguru==0.7.0 | ||
tqdm==4.66.0 | ||
loguru==0.7.0 |