У меня проблема с задачей сельдерея, приложение развернуто на Heroku. Когда я создаю задание, используя eta, я получаю много повторяющихся заданий, я думаю, что это произошло, чтобы перезапустить заново на heroku, и тогда задание будет продублировано. Спасибо за ваши ответы!
$ celery inspect scheduled
-> celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4: OK
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}
* {'eta': '2020-04-16T10:21:00+00:00', 'priority': 6, 'request': {'id': '5ea46d5e-a6b3-43bc-9228-73833624e8b2', 'name': 'task_module.tasks.send_reminder', 'args': [41407234, '8'], 'kwargs': {}, 'type': 'task_module.tasks.send_reminder', 'hostname': 'celery@78640d9a-168a-43c4-88f9-8cd4c81ca8b4', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'celery', 'priority': 0, 'redelivered': None}, 'worker_pid': None}}