Skip to content

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

@ThomasA

Description

@ThomasA

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions