Port cron_run_manually

The code is much simplified using the new api. It worked in all of my tests.
Yikes, that was for debugging, I'll remove it. Thanks.