Celery with Amazon SQS

前端 未结 7 1494
星月不相逢
星月不相逢 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 20:53

    Nobody answered about this. Anyway I tried to configure Celery with Amazon SQS, and it seems I achieved a small success.

    Kombu should be patched for this, so I wrote some patches and there is my pull request as well. You can configure Amazon SQS by setting BROKER_URL of sqs:// scheme in Celery on the patched Kombu. For example:

    BROKER_URL = 'sqs://AWS_ACCESS:AWS_SECRET@:80//'
    BROKER_TRANSPORT_OPTIONS = {
        'region': 'ap-northeast-1',
        'sdb_persistence': False
    }
    

提交回复
热议问题