Skip to content

invalid eta value '2015-12-05': int() argument must be a string or a number, not 'NoneType' #2605

@sttwister

Description

@sttwister

celery==3.1.10
kombu==3.0.24

If I pass an ETA to task with the value of datetime.datetime(2015, 12, 4, 22, 0, tzinfo=), the worker throws the following error:

Received invalid task message: invalid eta value '2015-12-05': int() argument must be a string or a number, not 'NoneType'
The message has been ignored and discarded.

Please ensure your message conforms to the task
message protocol as described here: http://bit.ly/hYj41y

The full contents of the message body was:
{'utc': True, 'chord': None, 'args': (<Agency: goldenkey>, 4398), 'retries': 0, 'expires': None, 'task': 'activities.tasks.send_activity_reminder', 'callbacks': None, 'errbacks': None, 'timelimit': (None, None), 'taskset': None, 'kwargs': {}, 'eta': '2015-12-05', 'id': '123bb2d4-b1a5-4193-a51d-eb5d5bf7d117'} (3739b)

The local timezone is UTC+2, so the task should be executed exactly at midnight.

What's going on?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions