0

我在 Heroku 上使用 CloudAMQP 和 Celery 来安排任务。当我将代码推送到 Heroku 时,突然收到以下错误:

BDB0210 celerybeat-schedule.db: metadata page checksum error
consumer: Cannot connect to amqps://user:password@bonobo.rmq.cloudamqp.com:port/user: The read operation timed out.

问题是,它在 3 个月内工作得非常好。前几天我突然收到这个错误。我已经检查了 Github 上的提交,并且没有对我的设置进行任何调整。那么这个错误可能是什么?我当前的 Heroku 配置是:

CELERY_BROKER_URL = "amqps://user:password@bonobo.rmq.cloudamqp.com:port/user"
CELERY_RESULT_BACKEND = "rpc://"
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'

我的 Procfile 内容如下:

web: gunicorn project_settings.wsgi --log-file -
worker: celery -A project_settings worker --beat
4

0 回答 0