Cronjob not working

hmmm are you overengineering/complicating things?

The reason why it stops is because:

 auto_stop_machines = true
 auto_start_machines = true
 min_machines_running = 0

Perhaps you can just use New feature: Scheduled machines