Skip to content

[FEATURE REQUEST] Use a cron job instead of waiting a set amount of time indefinitely #285

@EDM115

Description

@EDM115

await asyncio.sleep(5 * 60) # Sleep for 5 minutes

it is possible to use something like

from aiocron import crontab
crontab("*/5 * * * *", remove_expired_tasks)

can also be used as a decorator
docs | source

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions