Fix scheduled task removal
Fix scheduled task removal

If a build failed to commit_and_push, the scheduled tasks would still be
removed. They are now only removed if and after the commit_and_push
succeeds.

OSU-Net/cyder,drkitty/cyder,zeeman/cyder,drkitty/cyder,akeym/cyder,drkitty/cyder,drkitty/cyder,murrown/cyder,OSU-Net/cyder,zeeman/cyder,OSU-Net/cyder,akeym/cyder,murrown/cyder,zeeman/cyder,akeym/cyder,murrown/cyder,OSU-Net/cyder,zeeman/cyder,murrown/cyder,akeym/cyder