You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation is raising a FutureWarning for Cron jobs.
(venv) user:~/git/orcfax/collector-node$ python heartbeat.py
Feeds to be removed by this heartbeat before being added: ADAUSD-ee4eed14-ffc2-11ed-9f67-67fb68ae3988
/home/user/git/orcfax/collector-node/venv/lib/python3.10/site-packages/rq_scheduler/utils.py:28: FutureWarning: Version 0.22.0+ of crontab will use datetime.utcnow() and
datetime.utcfromtimestamp() instead of datetime.now() and
datetime.fromtimestamp() as was previous. This had been a bug, which will be
remedied. If you would like to keep the *old* behavior:
`ct.next(..., default_utc=False)` . If you want to use the new behavior *now*:
`ct.next(..., default_utc=True)`. If you pass a datetime object with a tzinfo
attribute that is not None, timezones will *just work* to the best of their
ability. There are tests...
next_time = cron.next(now=now, return_datetime=True)
Feeds queued: ADAUSD-ee4eed14-ffc2-11ed-9f67-67fb68ae3988
The current implementation is raising a
FutureWarning
for Cron jobs.This seems to be the affected line:
rq-scheduler/rq_scheduler/utils.py
Line 28 in 0521e7f
This can be fixed using the
default_utc
argument above, ornow = datetime.now(timezone.utc)
.The text was updated successfully, but these errors were encountered: