Closed benoitscherrer closed 2 years ago
Just tried your example with a class and python3.9. Works fine:
Now is 17:17:59.479047
OK working
Not working 1
Same with python 3.8.12
Can you try after pip install -e "git+ssh://git@github.com:gawel/aiocron.git@master#egg=aiocron"
?
Ok you're experimenting an already fixed bug: https://github.com/gawel/aiocron/commit/5b9ada7b8811c18c704f764b217d8e96c8e2d38b
I've just released aiocron 1.8. Should fix your problem.
Thanks! Yes I confirm that with 1.8 it works.
Thanks B
It seems aiocron 1.7 broke something when calling a coroutine with parameters Here using python 3.8.10 on Ubuntu
For example that works:
I get something like:
However, in a class like that:
The call without parameters works, but not the one with parameters. There is a
RuntimeWarning: coroutine 'Test.notworking' was never awaited
error (same if we create the crontab in run()) and the coroutine is never called (quite bad for our software! it was not doing anymore what it was supposed to do at regular intervals)Thanks so much B