Update scripts
This commit is contained in:
parent
adfbd650e6
commit
d6eeb65ccc
@ -12,8 +12,6 @@ settings = load_settings(pyinfra_config_path)
|
||||
|
||||
|
||||
def upload_json_and_make_message_body():
|
||||
bucket = settings.storage.s3.bucket
|
||||
|
||||
dossier_id, file_id, suffix = "dossier", "file", "json.gz"
|
||||
content = {
|
||||
"numberOfPages": 7,
|
||||
|
||||
@ -2,6 +2,8 @@ import argparse
|
||||
import time
|
||||
from pathlib import Path
|
||||
|
||||
from kn_utils.logging import logger
|
||||
|
||||
from pyinfra.config.loader import load_settings, pyinfra_config_path
|
||||
from pyinfra.examples import start_queue_consumer_with_prometheus_and_health_endpoints
|
||||
|
||||
@ -18,7 +20,8 @@ def parse_args():
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def processor_mock(_data: dict, _message: dict) -> dict:
|
||||
def processor_mock(_data: dict, message: dict) -> dict:
|
||||
logger.info(f"Received message for tenant {message.get('X-TENANT-ID')}")
|
||||
time.sleep(5)
|
||||
return {"result1": "result1"}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user