cron: fix #11935
cron: pylint fixes
cron: fix test
Merge pull request #12107 from makinacorpus/c

cron: fix #11935