bijection-compute Python package on your own
compute. The handler receives the arguments admitted by the
external job and returns a value matching
the job’s returns type.
digest of the resolved bijection.interface/v1 function
entry ({args, returns, defaults?}, as bijection.worker.contract_digest
and bijection workers compute it) when publishing the worker. On the application side,
contractDigest(forecast) from @bijectionhq/pack-compute returns the
digest of the declared job. Keep the worker artifact’s digest pinned to its
own contract so that a stale worker is refused.
Your launcher starts python -m bijection_compute.worker module:CATALOG
with the run context in BIJECTION_CONTEXT. Keep that context private.
It contains the credential the worker uses to post progress and answer
the original task.
A single-function job can call serve_run(forecast) instead. For dataset
work, the pipeline gives the worker its pinned input
versions and leases; use your own libraries to compute over them. Datasets
admits the output under the app’s publication policy.