Celery with Amazon SQS

前端 未结 7 1463
星月不相逢
星月不相逢 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 21:01

    I was able to configure SQS on celery 4.3 (python 3.7) by using kombu.

    from kombu.utils.url import quote
    
    CELERY_BROKER_URL = 'sqs://{AWS_ACCESS_KEY_ID}:{AWS_SECRET_ACCESS_KEY}@'.format(
        AWS_ACCESS_KEY_ID=quote(AWS_ACCESS_KEY_ID, safe=''),
        AWS_SECRET_ACCESS_KEY=quote(AWS_SECRET_ACCESS_KEY, safe='')
    )
    
    0 讨论(0)
提交回复
热议问题