Port cron_run_manually

The code is much simplified using the new api. It worked in all of my tests.