Skip to content

WASM notes

lukemarsden edited this page Jun 25, 2022 · 4 revisions

cli `bacalhau run python --deterministic`

REST API -> jobspec
  EngineType: Language
  JobSpecLanguage:
    Language: python
    Version: 3.8
    Deterministic: true
    Context: StorageSpec:
      CID: a1b2c3
    Command: ""
    ProgramPath: "main.py"
    RequirementsPath: "requirements.txt"

On executor, language engine is a wrapper around
  - if language == python && deterministic
    - wrap PythonWasm executor
      - PythonWasm executor wraps DockerExecutor
        - Image: quay.io/bacalhau/pyodide:1.0.0
        - mount storagespec...
          (context is untarred from REST and pinned as directory in ipfs by requestor node)

Clone this wiki locally