fc6647e8730cdcc5af4245b1cc165d5ab133ac5b
If no render nodes were registered, the modulo on nodes.length would push NaN into index, causing an unrecoverable state. Not deleting rejected jobs also leaked memory.
Render-Job server for Toho-Miku
Endpoints:
- [GET] /
- Returns a string "Job handling server"
- [GET] /jobs
- Returns a JSON object containing a count and items for the
queued,waiting, andfinishedjobs.
- Returns a JSON object containing a count and items for the
- [POST] /jobs
- Accepts a JSON object in the request body, generates a unique job ID using an MD5 hash, and adds the job to the
queuedjobs object. The generated job ID and a status code of200are returned in the response.
- Accepts a JSON object in the request body, generates a unique job ID using an MD5 hash, and adds the job to the
Description
Languages
JavaScript
100%