Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('n', type=int, default=10,
parser.add_argument('-n', type=int, default=10,
help='The input of fibonacci task. Default: 10')
args = parser.parse_args()

Expand Down
6 changes: 2 additions & 4 deletions example/taskworker/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Production settings
#

# MESSAGE_QUEUE_USE_PROXY = False
# AWS_ACCESS_KEY_ID = 'KEY_ID'
# AWS_SECRET_ACCESS_KEY = 'ACCESS_KEY'
# AWS_REGION = 'us-west-2'
Expand All @@ -16,11 +15,10 @@
#

# Using elasticmq to emulate SQS locally
MESSAGE_QUEUE_USE_PROXY = True
MESSAGE_QUEUE_PROXY_PORT = 9324
MESSAGE_QUEUE_PROXY_HOST = os.getenv('MESSAGE_QUEUE_PROXY_HOST', '0.0.0.0')
AWS_ACCESS_KEY_ID = 'x'
AWS_SECRET_ACCESS_KEY = 'x'
MESSAGE_QUEUE_ENDPOINT_URL = 'http://localhost:9324'
AWS_REGION = 'elasticmq'

# Queue config file path
QUEUE_CONFIG = 'taskworker/queue_config.yaml'
Expand Down