Jan Groß fc6647e873 Fix round-robin index calculation and job rejection.
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.
2023-06-16 12:26:36 +02:00
2023-06-11 20:57:24 +02:00

jose-banner

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, and finished jobs.
  • [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 queued jobs object. The generated job ID and a status code of 200 are returned in the response.
Description
No description provided
Readme 87 KiB
Languages
JavaScript 100%