Closed wuyuhang409 closed 7 months ago
I haven't run the code yet, but I think this relates to a problem I discovered last weekend where the resolution of the interval type fields was insufficient on MySQL. It's not a problem on sqlite or PostgreSQL. I have a fix locally which I will push this week, and it will be part of the next release.
On another note, I suggest switching to PostgreSQL if you possibly can.
You're right, there's no such issue in PostgreSQL. Currently, I'm using peewee-async, and I see a significant gap in benchmark testing between asyncpg and aiopg. Perhaps I should consider migrating from peewee to sqlalchemy
FWIW: I've found a similar error that it resolved setting the env var TZ=UTC
.
Also, if I set this through os.environ['TZ'] = 'UTC'
, instead of checking the fire time every few miliseconds, sets the next fire time for one hour from now (I'm at UTC+01:00).
I've pushed a number of fixes for MySQL and SQLite. Please try again against the current master.
EDIT: These fixes are in v4.0.0a4 too.
Things to check first
[X] I have checked that my issue does not already have a solution in the FAQ
[X] I have searched the existing issues and didn't find my bug already reported there
[X] I have checked that my bug is still present in the latest release
Version
4.0.0a3
What happened?
I do not understand English. The following content is translated by Google. Please forgive me
When I executed this code, I found that I couldn't print the content of the tick method. After debugging, I found that there was a looping sleep bug due to the current time exceeding the next execution time. It should have automatically updated this field
This issue does not exist when I use MemoryDataStore
this code is examples/web/asgi_fastapi.py
Log
How can we reproduce the bug?
asyncmy==0.2.8 SQLAlchemy==2.0.19 uvicorn==0.23.2