Celery with Amazon SQS

前端 未结 7 1482
星月不相逢
星月不相逢 2020-11-30 20:11

I want to use Amazon SQS as broker backed of Celery. There’s the SQS transport implementation for Kombu, which Celery depends on. However there is not enough documentation f

7条回答
  •  粉色の甜心
    2020-11-30 20:50

    Update for Python 3, removing backslashes from the AWS KEY.

    from urllib.parse import quote_plus
    BROKER_URL = 'sqs://{}:{}@'.format(
        quote_plus(AWS_ACCESS_KEY_ID), 
        quote_plus(AWS_SECRET_ACCESS_KEY)
    )
    

提交回复
热议问题