AttributeError: 'str' object has no attribute 'tzinfo' #246
Replies: 2 comments 1 reply
-
Can you please open this as an issue and not a discussion? |
Beta Was this translation helpful? Give feedback.
1 reply
-
added the isssue, #248 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've installed the latest release [v4.0.0b3]
Traceback (most recent call last):
File "threading.py", line 1038, in _bootstrap_inner
self.run()
File "threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "python3.11/site-packages/scheduler/worker/scheduler.py", line 171, in run_scheduler
scheduler.work()
File "python3.11/site-packages/scheduler/worker/scheduler.py", line 142, in work
self.enqueue_scheduled_jobs()
File "python3.11/site-packages/scheduler/worker/scheduler.py", line 149, in enqueue_scheduled_jobs
_reschedule_tasks()
File "python3.11/site-packages/scheduler/worker/scheduler.py", line 30, in _reschedule_tasks
item.save()
File "python3.11/site-packages/scheduler/models/task.py", line 373, in save
self._schedule()
File "python3.11/site-packages/scheduler/models/task.py", line 356, in _schedule
job = self.rqueue.create_and_enqueue_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "python3.11/site-packages/scheduler/helpers/queues/queue_logic.py", line 252, in create_and_enqueue_job
self.scheduled_job_registry.schedule(self.connection, job_model, when)
File "python3.11/site-packages/scheduler/redis_models/registry/queue_registries.py", line 63, in schedule
if not scheduled_datetime.tzinfo:
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'tzinfo'
from django.utils import timezone
scheduled_time=timezone.now()
Beta Was this translation helpful? Give feedback.
All reactions