Skip to content

Scheduler timeout: TypeError: can't compare offset-naive and offset-aware datetimes #728

@w2pu

Description

@w2pu

pydal 20241204.1
Get following error when using scheduler:

File "/home/py4web/.venv/lib/python3.12/site-packages/pydal/tools/scheduler.py", line 210, in step
if run.timeout and run.started_on + delta(run.timeout) < now():
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: can't compare offset-naive and offset-aware datetimes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions