gawel / aiocron

Crontabs for asyncio
MIT License
343 stars 21 forks source link

Tasks from separate file not scheduled at all #10

Closed Stamper closed 6 years ago

Stamper commented 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?

gawel commented 6 years ago

No idea. It should works. Except if you're doing weird things with your event loop