-
-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'decimal.Decimal' object has no attribute 'total_seconds' #245
Comments
@peppelinux could you give a bit more information about your system.
I run macOS Sierra (v10.12.5) |
as already wrote: django-q version is the latest stable |
Sorry, first drink coffee then read stuff... I tried django 1.10.7 with djang-q but din't get any errors. |
Thank you very much, I really appreciate your share, I'll do my best with some trials before update, and hopefully close, this issue. |
I had the same issue #224 |
With python2 it doesn't exist, I had this exception with python 3.5 but I should do some other accurate tests |
@peppelinux any update on this? |
Python 3.6 mac django2 run qinfo same issue |
python 3.6
Same issue. |
python 3.7.3
Same issue for me as well. |
python 3.7.3 python manage.py qinfo Same issue for me as well. |
Hi, I have the same issue. But the method "total_seconds()" it's a timedelta method.
|
Currently on holiday, but will have a look when I'm back. Thanks for the
detective work.
…On Thu, 30 Jul 2020, 11:59 Ikarys, ***@***.***> wrote:
Hi,
I have the same issue.
If we investigate in the file monitor.py, we see in line 204 that the
object exec_time["time_taken" has type "decimal.Decimal".
But the method "total_seconds()" it's a timedelta method.
https://docs.python.org/2/library/datetime.html#datetime.timedelta.total_seconds
exec_time = last_tasks.aggregate(
time_taken=Sum(F("stopped") - F("started"))
)
exec_time = exec_time["time_taken"].total_seconds() / tasks_per_day```
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6AQNMMJYTI6WM7OFW4TVTR6FABJANCNFSM4DQR44YA>
.
|
I have the same issue @ version 1.3.9 on Redis 5.0.14, MariaDB 10.3.29 and Python 3.9.1 My temp solution is delete Thank You~ |
Debian 9, python 3.5.3, Django 1.10.7
if I enable time zone support in django settings I get another fault
The text was updated successfully, but these errors were encountered: