mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-14 21:15:06 +00:00
Deployed 09cae2e with MkDocs version: 1.6.1
This commit is contained in:
@@ -2689,6 +2689,11 @@ full detail:</p>
|
||||
<td>string or <code>null</code></td>
|
||||
<td>The prompt the service waits on. Answer it with <code>POST /api/download/jobs/{job_id}/input</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>notice</code></td>
|
||||
<td>string or <code>null</code></td>
|
||||
<td>A message the service shows while it waits for an approval on another device, such as a pair code. It needs no answer.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>The full detail adds <code>started_time</code>, <code>completed_time</code>, <code>output_files</code>, the redacted
|
||||
@@ -2893,7 +2898,9 @@ server process. For each job it spawns a separate Python subprocess:</p>
|
||||
</ul>
|
||||
<p>The job worker has no terminal. When a service asks the user for input, the job worker writes
|
||||
the prompt to <code>progress.json</code> as <code>input_prompt</code> and waits. The answer from
|
||||
<code>POST /api/download/jobs/{job_id}/input</code> goes to the job worker on its stdin.</p>
|
||||
<code>POST /api/download/jobs/{job_id}/input</code> goes to the job worker on its stdin.
|
||||
When a service waits for an approval on another device, the job worker writes the message as
|
||||
<code>notice</code> and sets it back to <code>null</code> when the wait ends.</p>
|
||||
<p>Running each download out-of-process isolates the server from crashes, memory growth,
|
||||
and blocking work inside the download engine, and makes hard cancellation (killing the
|
||||
process) reliable.</p>
|
||||
|
||||
Reference in New Issue
Block a user