The render service documented in /workspace/batch/API.md is running on this machine. Extend /workspace/batch/run_batch.py so that jobs that end with status failed are resubmitted, up to 2 extra attempts per input; results.json must record for each input the final status, the result (or null) and the number of attempts. Inputs that never finish must still be reported with status timeout as they are now. See /workspace/batch/README.md. The result will be run directly on this machine, so make sure it actually works here.