Bacalhau Docs
GithubSlackBlogEnterprise
v1.6.x
  • Documentation
  • Use Cases
  • CLI & API
  • References
  • Community
v1.6.x
  • Welcome
  • Getting Started
    • How Bacalhau Works
    • Getting Started
      • Step 1: Install the Bacalhau CLI
      • Step 2: Running Your Own Job
      • Step 3: Checking on the Status of Your Job
    • Creating Your Own Bacalhau Network
      • Setting Up a Cluster on Amazon Web Services (AWS) with Terraform 🚀
      • Setting Up a Cluster on Google Cloud Platform (GCP) With Terraform 🚀
      • Setting Up a Cluster on Azure with Terraform 🚀
    • Hardware Setup
    • Container Onboarding
      • Docker Workloads
      • WebAssembly (Wasm) Workloads
  • Setting Up
    • Running Nodes
      • Node Onboarding
      • GPU Installation
      • Job selection policy
      • Access Management
      • Node persistence
      • Configuring Your Input Sources
      • Configuring Transport Level Security
      • Limits and Timeouts
      • Test Network Locally
      • Bacalhau WebUI
      • Private IPFS Network Setup
    • Workload Onboarding
      • Container
        • Docker Workload Onboarding
        • WebAssembly (Wasm) Workloads
        • Bacalhau Docker Image
        • How To Work With Custom Containers in Bacalhau
      • Python
        • Building and Running Custom Python Container
        • Running Pandas on Bacalhau
        • Running a Python Script
        • Running Jupyter Notebooks on Bacalhau
        • Scripting Bacalhau with Python
      • R (language)
        • Building and Running your Custom R Containers on Bacalhau
        • Running a Simple R Script on Bacalhau
      • Run CUDA programs on Bacalhau
      • Running a Prolog Script
      • Reading Data from Multiple S3 Buckets using Bacalhau
      • Running Rust programs as WebAssembly (WASM)
      • Generate Synthetic Data using Sparkov Data Generation technique
    • Networking Instructions
      • Accessing the Internet from Jobs
      • Utilizing NATS.io within Bacalhau
    • GPU Workloads Setup
    • Automatic Update Checking
    • Marketplace Deployments
      • Google Cloud Marketplace
    • Inter-Nodes TLS
  • Guides
    • Configuration Management
    • Write a config.yaml
    • Write a SpecConfig
    • Using Labels and Constraints
  • Examples
    • Table of Contents for Bacalhau Examples
    • Data Engineering
      • Using Bacalhau with DuckDB
      • Ethereum Blockchain Analysis with Ethereum-ETL and Bacalhau
      • Convert CSV To Parquet Or Avro
      • Simple Image Processing
      • Oceanography - Data Conversion
      • Video Processing
      • Bacalhau and BigQuery
    • Data Ingestion
      • Copy Data from URL to Public Storage
      • Pinning Data
      • Running a Job over S3 data
    • Model Inference
      • EasyOCR (Optical Character Recognition) on Bacalhau
      • Running Inference on Dolly 2.0 Model with Hugging Face
      • Speech Recognition using Whisper
      • Stable Diffusion on a GPU
      • Stable Diffusion on a CPU
      • Object Detection with YOLOv5 on Bacalhau
      • Generate Realistic Images using StyleGAN3 and Bacalhau
      • Stable Diffusion Checkpoint Inference
      • Running Inference on a Model stored on S3
    • Model Training
      • Training Pytorch Model with Bacalhau
      • Training Tensorflow Model
      • Stable Diffusion Dreambooth (Finetuning)
    • Molecular Dynamics
      • Running BIDS Apps on Bacalhau
      • Coresets On Bacalhau
      • Genomics Data Generation
      • Gromacs for Analysis
      • Molecular Simulation with OpenMM and Bacalhau
    • Systems Engineering
      • Ad-hoc log query using DuckDB
  • References
    • Jobs Guide
      • Job Specification
        • Job Types
        • Task Specification
          • Engines
            • Docker Engine Specification
            • WebAssembly (WASM) Engine Specification
          • Publishers
            • IPFS Publisher Specification
            • Local Publisher Specification
            • S3 Publisher Specification
          • Sources
            • IPFS Source Specification
            • Local Source Specification
            • S3 Source Specification
            • URL Source Specification
          • Network Specification
          • Input Source Specification
          • Resources Specification
          • ResultPath Specification
        • Constraint Specification
        • Labels Specification
        • Meta Specification
      • Job Templates
      • Queuing & Timeouts
        • Job Queuing
        • Timeouts Specification
      • Job Results
        • State
    • CLI Guide
      • Single CLI commands
        • Agent
          • Agent Overview
          • Agent Alive
          • Agent Node
          • Agent Version
        • Config
          • Config Overview
          • Config Auto-Resources
          • Config Default
          • Config List
          • Config Set
        • Job
          • Job Overview
          • Job Describe
          • Job Executions
          • Job History
          • Job List
          • Job Logs
          • Job Run
          • Job Stop
        • Node
          • Node Overview
          • Node Approve
          • Node Delete
          • Node List
          • Node Describe
          • Node Reject
      • Command Migration
    • API Guide
      • Bacalhau API overview
      • Best Practices
      • Agent Endpoint
      • Orchestrator Endpoint
      • Migration API
    • Node Management
    • Authentication & Authorization
    • Database Integration
    • Debugging
      • Debugging Failed Jobs
      • Debugging Locally
    • Running Locally In Devstack
    • Setting up Dev Environment
  • Help & FAQ
    • Bacalhau FAQs
    • Glossary
    • Release Notes
      • v1.5.0 Release Notes
      • v1.4.0 Release Notes
  • Integrations
    • Apache Airflow Provider for Bacalhau
    • Lilypad
    • Bacalhau Python SDK
    • Observability for WebAssembly Workloads
  • Community
    • Social Media
    • Style Guide
    • Ways to Contribute
Powered by GitBook
LogoLogo

Use Cases

  • Distributed ETL
  • Edge ML
  • Distributed Data Warehousing
  • Fleet Management

About Us

  • Who we are
  • What we value

News & Blog

  • Blog

Get Support

  • Request Enterprise Solutions

Expanso (2025). All Rights Reserved.

On this page
  • How do I accept (and run) networked jobs?
  • How do I restrict what nodes my jobs run on?
  • How do I specify the orchestrator for my compute node?
  • How do I enable the WebUI?
  • Can I use multiple data sources in the same job?
  • Can I run Bacalhau in a containerized setup (nested containers)?
  • Can I run non Docker jobs?
  • How do I run a script that requires installing packages from a package repository like pypi or apt?
  • How do I see a job’s progress while it’s running?
  • How can I download and query SQLite when it complains about being in read-only directory?
  • Can I stop a running job?

Was this helpful?

Export as PDF
  1. Help & FAQ

Bacalhau FAQs

How do I accept (and run) networked jobs?

By default, for security purposes, Bacalhau jobs run with networking turned off. In order for your compute node to accept (and run) networked jobs, you need to enable it on a per compute node basis. To do so, you need to set the following:

bacalhau config set JobAdmissionControl.AcceptNetworkedJobs=true

You will then be able to run jobs with the following criteria:

bacalhau docker run networked-job-container --network Full

How do I restrict what nodes my jobs run on?

First, you need to describe each node with a labels in a key=value format. Later labels can be used by the job as conditions for choosing the node on which to run on. For example:

bacalhau config set Labels=NodeType=WebServer

If you want to assign multiple targets, you can do so with key=value,key=value.

bacalhau config set Labels=foo=bar,baz=qaz

How do I specify the orchestrator for my compute node?

The Compute.Orchestratorfield in the config tells the Bacalhau compute node.

bacalhau config set Compute.Orchestrators=my-great-orchestrator.com

You can add the protocol and port, and it will apply this inline. E.g.

bacalhau config set Compute.Orchestrators=nats://my-great-orchestrator.com

Or:

bacalhau config set Compute.Orchestrators=nats://my-great-orchestrator.com:4222

How do I enable the WebUI?

By default, the WebUI for Bacalhau is disabled for security reasons. To enable the WebUI, run the Bacalhau requester node with the following configuration:

bacalhau config set WebUI.Enabled=true

Can I use multiple data sources in the same job?

You can use the --input or -i flag multiple times with multiple different CIDs, URLs or S3 objects, and give each of them a path to be mounted at.

For example, doing bacalhau run cat/main.wasm -i ipfs://CID1:/input1 -i ipfs://CID2:/input2 will result in both the input1 and input2 folders being available to your running WASM with the CID contents. You can use -i as many times as you need.

Can I run Bacalhau in a containerized setup (nested containers)?

Yes! We offer a Bacalhu Docker-in-Docker container. You can set something like this up by running the following container:

docker run -v ./orchestrator-config.yaml:/etc/bacalhau/config.yaml \
           -v node-info:/etc/node-info \
           bacalhauproject/bacalhau-dind-compute-node:latest

These two files are for configuring the Bacalhau node. The first is the orchestrator configuration, and will look something like this:

NameProvider: "uuid"
Compute:
  Enabled: true
  Orchestrators:
    - nats://f503ee90-c4dc-4ac7-a7b5-a460aeb94fb3.us1.cloud.expanso.dev:4222
  Auth:
    Token: "VERY_SECURE_TOKEN"
  TLS:
    RequireTLS: true
  Engine:
    Resources:
      CPU: 1
      Memory: 1GB
JobAdmissionControl:
  AcceptNetworkedJobs: true

And the second is just a list of arbitrary key-value pairs for labeling the node. For example:

HOSTNAME=d4dfe593221956e74d59
OS=Linux
REGION=us-west-1
ZONE=us-west-1a
GPU=H100

Can I run non Docker jobs?

How do I run a script that requires installing packages from a package repository like pypi or apt?

We recommend building all requirements into your container or WASM before running it. However, if you need to download and install after starting the run, make sure you have the following configuration setting set:

bacalhau serve --compute \
               -c Job.AdmissionControl.AcceptNetworkedJobs=true

How do I see a job’s progress while it’s running?

Type the following:

bacalhau job describe b4491a4a-7b55-4fa7-a5af-80f3c99bc379

How can I download and query SQLite when it complains about being in read-only directory?

When downloading content to run your code against, it is written to a read-only directory. Unfortunately, by default, SQLite requires the directory to be writable so that it can create utility files during its use.

If you run your command with the immutable setting set to 1, then it will work. From the sqlite3 command you can use .open 'file:/inputs/database.db?immutable=1' where you should replace "database.db" with your downloaded database filename.

Can I stop a running job?

PreviousSetting up Dev EnvironmentNextGlossary

Was this helpful?

Yes! You can run programs using WebAssembly instead. See the for information on how to do that.

If your job writes to stdout, or stderr, while it is running, you can also view the output with the command.

Yes. Given a valid job ID, you can use the to cancel the job, and stop it from running.

onboarding WebAssembly
logs
cancel command