Closed Stamper closed 6 years ago
I'm trying to move my tasks to the separate file (e.g. tasks.py)
@crontab('* * * * *', start=True) async def every_min(): print(datetime.now())
and do from tasks import every_min in my main run.py file but it not firing what is the proper way?
from tasks import every_min
No idea. It should works. Except if you're doing weird things with your event loop
I'm trying to move my tasks to the separate file (e.g. tasks.py)
and do
from tasks import every_min
in my main run.py file but it not firing what is the proper way?