Skip to Content
propeller logo

Create Task

POST
/tasks

Request Body

application/json
  1. body
name?string

Human-readable task name

kind?string

Task kind (standard or federated)

Value in"standard""federated"
image_url?string

URL for the Wasm binary. Accepts two forms: (1) OCI registry reference (e.g. docker.io/myorg/app:v1) — proplet fetches via the registry proxy; (2) plain HTTP/HTTPS URL (e.g. https://releases.example.com/app.wasm) — proplet fetches directly (max 100 MB). The scheme (http:// or https://) is used to detect which path to take.

file?string

Base64-encoded Wasm binary (alternative to image_url)

cli_args?array<string>

Command-line arguments passed to the Wasm module

inputs?array<string|number>

Input values passed to the Wasm module (strings or numbers; numbers are coerced to strings)

env?

Environment variables for the Wasm module

daemon?boolean

If true, task runs continuously until stopped

encrypted?boolean

If true, the Wasm binary is encrypted (requires KBS)

kbs_resource_path?string

KBS resource path for encrypted binaries (TEE only)

proplet_id?string

Target proplet ID; mutually exclusive with broadcast

broadcast?boolean

If true, task runs on all proplets simultaneously; mutually exclusive with proplet_id

depends_on?array<string>

List of task IDs this task depends on

run_if?string

Run condition based on dependency status

Value in"success""failure"
monitoring_profile?

CPU/memory usage monitoring configuration

mode?string

Task mode for FL tasks

Value in"infer""train"
priority?integer

Dispatch priority (0-100, default 50)

Range0 <= value <= 100
schedule?string

Cron expression for scheduled tasks

timezone?string

Timezone for scheduled tasks (default UTC)

is_recurring?boolean

If true, task re-runs according to schedule

metadata?

Arbitrary key-value metadata attached to the task (max 1 MB serialized)

Response Body

Task created (the file field is redacted in the response)

Example Request
curl -X POST 'http://localhost:7070/tasks' \  -H 'Content-Type: application/json' \  -d '{  "name": "main",  "file": "AGFzbQEAAAABBwFgAn9/AX8DAgEABwgBBG1haW4AAAoJAQcAIAAgAWoL",  "inputs": [    10,    20  ]}'
Example Response201
Empty