Builtin Library
README.md
services.attach
Reads a generation's gateway job by the jobId a run recorded, and returns its state and, once succeeded, its result — the provider's response, the URL or bytes the run would have downloaded. A submitted job is kept on the gateway with its result for hours after it finishes, longer than the engine that started it is guaranteed to last, so this reaches work that was already paid for once the run that started it is gone. A job whose provider refused the request (a 429 while it rate limits) reads failed, with the provider's HTTP status in upstreamStatus, its reason in error, and its answer in result. Costs nothing; the charge happened at submit.