fastapi-utils icon indicating copy to clipboard operation
fastapi-utils copied to clipboard

[QUESTION] Has `repeat_every` changed behaviour since fastapi-restful 0.5.0?

Open ThomasA opened this issue 11 months ago • 2 comments

Description

I have used fastapi-restful 0.5.0 for a long time in a project to repeat a task every five minutes. The task used to start every 5 minutes, regardless of how long each task took to complete.

I have switched to fastapi-utils 0.7.0. After the upgrade, it seems like my tasks start about five minutes after the previous task has completed. That is, it seems to have gone from five minutes between task starts to five minutes from the end of each task to the start of the next.

Can this be due to the switch to fastapi-utils? I notice there are some differences in @repeat_every between the packages, but I am not familiar enough with asyncio to conclude whether these can explain it. If this is the case, can I do something to get the behaviour back to five minutes between task starts?

Additional context I have also upgraded from FastAPI 0.110.2 to 0.115.4.

ThomasA avatar Oct 28 '24 08:10 ThomasA