import logging from generalresearchutils.config import is_debug from jb.settings import get_settings, get_test_settings if is_debug(): print("running using TEST settings") settings = get_test_settings() assert settings.debug is True else: print("running using PROD settings") settings = get_settings() assert settings.debug is False if settings.debug: LOG_LEVEL = logging.DEBUG else: LOG_LEVEL = logging.WARNING # The SNS topic that 1) JB Mturk will send notifications to, 2) will make http POSTs # back to us (here) TOPIC_ARN = f"arn:aws:sns:us-east-2:{settings.aws_owner_id}:amt-jb" SUBSCRIPTION = { "SubscriptionArn": settings.aws_subscription_arn, "Owner": settings.aws_owner_id, "Protocol": "https", "Endpoint": f"https://jamesbillings67.com/{settings.sns_path}/", "TopicArn": TOPIC_ARN, } JB_EVENTS_STREAM = "amt_jb_events" JB_EVENTS_FAILED_STREAM = "amt_jb_events_failed" CONSUMER_GROUP = "amt-jb-0" # We'll only have 1 consumer atm, change this if we don't CONSUMER_NAME = "amt-jb-0"