Create, Enqueue and Started Datetime Mismatch
I created task and here are the datetime recorded
Created Date | 07/03/2022 02:29:11 Enqueue Time | 06/03/2022 23:29:11 Start Date | 07/03/2022 02:29:11
This is the correct time of as of creation 06/03/2022 23:29:11
Created time seems to be pushed +3hrs ahead this makes execution not starting right away.
My Guess this is timezone issue, is it not supposed to store datetime in utc? so that it can be correctly translated to proper timezone accordingly?
Module
queue_job
Describe the bug
Created time seems to be pushed +3hrs ahead this makes execution not starting right away.
To Reproduce
Affected versions: 12.0
Steps to reproduce the behavior:
- set your timezone to Africa/Dar es salaam
- create task
Expected behavior Expected to have created time to be current time of creation not +3hrs
Additional context Add any other context about the problem here. (e.g. OS, Python version, ...)
Hello @fredwilliam I suggest you tu add this line in your systemd service:
ExecStartPre=/usr/bin/sudo -u postgres /usr/bin/psql DataBaseName -c "update queue_job set state='pending' where state in ('started', 'enqueued');"
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.