DuckDB jobs
A DuckDBJob is one YAML file that fetches data, shapes it with SQL, and writes the results to tables, files, message brokers or vendor APIs. It runs in an in-process DuckDB, so you need no cluster. Use a job when you need several steps, joins across systems, or state between runs. A SparkJob reads the same keys on Spark.
connections say where, steps fetch and shape, outputs write. Every call to the outside world names
a connection (where), an operation (what) and a policy (how).
A minimal job
kind: DuckDBJob
version: 1
name: analytics_orders
description: Load high-value orders into a DuckDB warehouse.
spec:
config:
min_amount: { type: number, default: 50.0 }
connections:
raw_data:
provider: files
roots: [data] # relative to this job's folder
warehouse:
provider: duckdb
path: analytics.duckdb
steps:
- name: raw_orders
connection: raw_data
read: parquet
path: orders.parquet
materialize: view
- name: high_value_orders
materialize: table
sql: |
SELECT order_id, customer_id, amount
FROM raw_orders
WHERE amount >= {{ config.min_amount }}
outputs:
- name: fact_orders
connection: warehouse
step: high_value_orders
table: fact_orders
mode: merge
primary_key: [order_id]
runtime:
threads: 4
memory_limit: 1GB
streamwright validate jobs/analytics/orders.yaml
streamwright run jobs/analytics/orders.yaml --set min_amount=100
What it does:
- Fetch:
raw_ordersreadsdata/orders.parquetas a view. - Shape:
high_value_ordersfilters it with SQL, using the config inputmin_amount. - Write: the output
fact_ordersmerges the rows into the warehouse table byorder_id. - Each run is one batch. Add
runtime.stateto keep a history of batches, so a failed run can resume.
Job structure
| Key | What it holds |
|---|---|
kind, version, name, description | kind: DuckDBJob; name is the job's name, also its name in the state store. It uses lowercase letters, digits and _, and may have dotted parts such as google_ads.upload_conversions (up to 128 characters) |
spec | Typed inputs: config, secrets, input (caller rows), lookups |
connections | Where: named places to read from and write to |
steps | Fetch and shape: views and tables built from SQL, file and database reads, API calls, broker messages |
outputs | Write: where the steps' rows go: tables, files, brokers, vendor APIs |
macros | .sql files of SQL functions its steps can call, relative to the job's folder. See Macros |
runtime | DuckDB settings, limits, the state store, fan-out |
Inputs
| Key | What it does |
|---|---|
spec.config | Typed values from --set NAME=VALUE (lists as a,b,c) or --config FILE. Templates read {{ config.NAME }} |
spec.secrets | Typed secrets, from --secrets FILE or STREAMWRIGHT_SECRET_<NAME> |
spec.input | Rows the caller hands to the run (--input), read as the table input. See Input payloads |
spec.lookups | Values fetched at run time. See Lookups and fan-out |
Each input takes type, items, required and default. Optional checks (enum, pattern, minimum, maximum,
max_length) run on every value before the run starts. Use them on any input that reaches SQL text.
A secret may appear only in a connection's credential keys. See Accounts & secrets.
Connections
Each connection names a provider plus that provider's keys.
| Provider | Needs |
|---|---|
duckdb (a database file) | Built in |
files (local roots), s3, gcs, azure_blob, postgres, mysql, deltalake | The connector, for example sw connectors -i files |
kafka, sqs | sw connectors -i kafka, sw connectors -i sqs |
An API used by a call step or an apply output (for example google_ads) | The connector itself (sw connectors -i google_ads) |
Steps
Each step builds a view or table. Later steps and outputs read it by its name. The run order comes from the SQL and
the {{ step.column }} references, not from the list order.
| Step | Recognized by | Use it to |
|---|---|---|
sql | sql: with no connection or source | Shape earlier steps with DuckDB SQL |
read | connection + read: | Read files or a database table |
| Call | connection + operation: (or async_job:) | Call an API through a connector, or run a report job |
| Source | source + stream | Run a stream of a StreamWright source folder |
| Consume | a broker connection + operation: {service: message, method: consume} | Read a batch of Kafka or SQS messages |
Any step can also log its rows and take a policy.
SQL steps
A sql step runs DuckDB SQL over earlier steps. It is kept as a view (default) or a table (materialize:), like
high_value_orders in the minimal job. To read a table of a database connection (duckdb,
postgres, mysql), qualify it (wh.main.orders, app_db.public.processed_feeds) or use a read: table
step. postgres_query('app_db', '...') runs a query in PostgreSQL itself. A connection named this way is attached
read-only, so one query can join it with earlier steps or files:
SELECT f.* FROM read_blob('/nas/feeds/1001/*.csv') f
ANTI JOIN app_db.public.processed_feeds p ON p.path = f.filename -- the feeds not processed yet
In any sql (steps and outputs), {{ batch.id }} and {{ batch.ts }} are the batch's job id and time, as quoted
literals. {{ config.NAME }} is pasted as text (a boolean as true or false).
Read steps
| Reads | Keys |
|---|---|
Files: read: parquet, csv, json or auto | path, options, schema_mode, row_index, columns, column_groups, path_pattern, vocabulary, on_unmapped_column |
| Databases | table or query |
path may be a {{ step.column }} reference. A read pins its list of files in the batch, so a retry reads the
same files.
Call steps
A call step asks a connector to run an operation: and loads what comes back. The operation is either:
- a call,
{service, method, arguments}, for SDK connectors such as Google Ads, or - an HTTP request,
{path, method, params, headers, json, records, paginator}, for REST API connectors such asrestapi.
- name: raw_campaigns
connection: ads_api # provider: google_ads
operation:
service: GoogleAdsService
method: search_stream
arguments:
customer_id: "{{ config.customer_id }}"
query: "SELECT campaign.id, campaign.name FROM campaign LIMIT 50"
sql: |
SELECT record->>'$.campaign.id' AS campaign_id,
record->>'$.campaign.name' AS campaign_name
FROM records
- The
recordstable. The step's optionalsqlreads the tablerecords: one JSON column,record, one row per record. Withoutsql, the records' top-level keys become the columns. - Use
->>. It returns text (cast it for other types).->keeps JSON, so a CSV output writes it quoted. - Partitions.
partitions: [{from, field, name}]runs the call once per distinct value offieldin the stepfrom. The call reads the value as{{ partition.NAME }}. These values are not columns ofrecords. - HTTP requests. The connection holds the authentication and the
http:defaults (base_url,headers,paginator, ...). Each REST connector's page has a complete job.
Cache
A call that many passes make the same way (one manager account's conversion actions, for every account under it) can be fetched once and replayed:
- name: conversion_actions
connection: ads
operation: {service: GoogleAdsService, method: search, arguments: {customer_id: "{{ config.manager_id }}", ...}}
cache: {scope: store, ttl: 6h, stale: 30m}
| Key | What it does | Default |
|---|---|---|
scope | session: this run of the job (its passes, batches and threads). store: the job's state store, so later runs and other hosts share it | session |
ttl | How long an answer is fresh (30m, 6h, or seconds). Required with store | The run |
stale | store: how long past its ttl an answer stands in while another run refreshes it, or when the refresh fails before its first record | None |
key | What makes two calls the same, rendered like the call, e.g. "{{ config.manager_id }}" | The call itself, rendered |
-
What is kept: the records the call fetched, before the step's
sql. Each pass'ssqlstill runs with its own inputs. -
Who shares an answer: calls of the same job and step, through the same connection settings and credentials (an account with its own token has its own answer), with the same
keyor call and partition values. Both are compared rendered (config values,today), so calls for different accounts never share an answer. -
One fetch at a time. In a session, one thread fetches while the others wait. In the store, one run claims the refresh; the others wait, or use the stale answer.
-
Only reads.
validaterefuses a cache on an operation that writes, on a PUT, PATCH or DELETE request, and on anasync_job. -
Store answers live in the state tables
sw_cacheandsw_cache_parts, in compressed parts of at most 5,000 records, with no size limit.streamwright state cache list | clearshows and drops them;state purgedrops the expired ones. -
In the logs (
streamwright.cache), one line per call, each with anevent:Event Means cache_hitA fresh answer was read; no call cache_missNo fresh answer: this run calls cache_storedThe call's records were stored cache_staleAn expired answer was read while another run refreshes it cache_fallbackWARNING: the call failed; an expired answer stands in cache_waitWaiting for another run's refresh cache_supersededAnother run stored its answer first; that one is kept Each line names its answer, e.g.
1 cached record(s), 4 min old (customer 1234567890, key 3f9a1c2b7e4d). The key's 12 characters match the KEY column ofstate cache list. JSON lines also carrycache_key,cache_scope(sessionorstore),recordsandage_s.
Async reports
A call step can run a report job: use async_job: instead of operation: (one or the other, not both). It takes the
same keys as in a source (Async reports): submit, poll, and exactly one of
results or download. The records land in records like any call step's.
- name: report
connection: ads # provider: microsoft_ads
async_job:
submit:
operation:
service: ReportingService
method: SubmitGenerateReport
arguments:
request:
ReportRequest:
"@type": CampaignPerformanceReportRequest
Aggregation: Daily
Format: Csv
ExcludeReportHeader: true
ExcludeReportFooter: true
Columns: [TimePeriod, AccountId, CampaignId, CampaignName, Impressions, Clicks, Spend]
Scope: {AccountIds: ["{{ config.account_id }}"]}
Time: {PredefinedTime: Yesterday}
poll:
operation: {method: PollGenerateReport, arguments: {request: {ReportRequestId: "{{ submit.result }}"}}}
every: 15s
timeout: 30m
done_when: {path: Status, equals: Success}
fail_when: {path: Status, equals: Error}
download: {url: "{{ poll.ReportDownloadUrl }}", format: csv, compression: zip}
sql: SELECT record->>'CampaignId' AS campaign_id, (record->>'Impressions')::BIGINT AS impressions FROM records
- Each part's
operationis what the connector takes: a call for SDK connectors (Microsoft Ads, Meta Ads), an HTTP request for REST connectors (Amazon Ads,restapi). - Call steps have no incremental windows (
{{ window.* }}works only in sources). Set the range with{{ config.* }}, a relative range of the API (such asPredefinedTime), or step partitions. - Inline or a source? Inline suits a one-off, self-contained job. Use a source stream and a source step when the report is reused, read incrementally (windows, lookback, bookmarks) or shared by several jobs.
Source steps
A source step runs one stream of a source folder (relative to the job's folder). Its records load like a call step's.
- name: raw_events
source: ../../sources/readers/files_demo
stream: events
Consume steps
A consume step reads a batch of messages into the table input. Its optional sql shapes them. A job has at most
one consume step.
- name: orders
connection: bus # provider: kafka
operation:
service: message
method: consume
arguments: {destination: orders, group_id: orders-loader, from: earliest, max_wait: 5s}
sql: |
SELECT message_id, key, json_extract_string(body, '$.id') AS order_id, headers['source'] AS origin
FROM input
| Part | What it holds |
|---|---|
arguments | The connector's (Kafka: destination, group_id, from, options; SQS: the queue URL as destination, visibility_timeout), plus max_messages and max_wait |
The input table | message_id, key, body (the payload as text), headers (a map), timestamp |
Messages are acknowledged only after the outputs commit, so a failed batch keeps them for its retry. To run more than one batch per run, see batch modes.
Logging rows
Any step can log its rows, each batch, so you can check what a job did.
- name: skipped_actions
sql: SELECT i.name, e.resource_name FROM input AS i JOIN existing_actions AS e USING (name)
log:
message: "conversion action {name} already exists ({resource_name}): not created"
max_rows: 50
| Key | What it does | Default |
|---|---|---|
message | Required. {column} placeholders are filled from each row | |
level | debug, info or warning | info |
max_rows | Lines to log (1 to 1000), then one ... and N more row(s) line | 20 |
Lines go to the streamwright.steps logger, redacted. A placeholder for a missing column fails the step. Under
streamwright serve, only the row count is logged.
Policy
Steps and outputs take policy:, with the same keys as a source stream. A key that does not apply where you put it
is a validation error, never silently ignored.
| Key | What it does | Works on |
|---|---|---|
retry: {max_attempts, backoff, max_delay, codes} | Retries a transient failure | Read and call steps, outputs that write or apply |
rate_limit: {requests, per, shared_by} | Throttles calls. With shared_by (such as "{{ config.login_customer_id }}"), every step, output and fan-out pass that calls through the same connection with the same value shares one limit | Call steps, apply outputs, a connection's policy |
page_size | Pages a call | Call steps |
timeout | Bounds each call, read or write (seconds, or 30s) | sql, read and call steps, outputs that write |
on_error | fail (default) fails the batch; skip and warn let it go on (warn also logs) | sql, read and call steps, outputs that write |
Consume steps and publish outputs take none of these keys.
Outputs
Each output names a connection, and a step or an inline sql. There are three kinds:
- Writes to tables or files (below).
- Apply outputs send rows to vendor APIs (reverse ETL).
- Publish outputs send events to Kafka or SQS.
| Writer | Modes | Other keys |
|---|---|---|
Tables (duckdb, postgres, mysql) | append, overwrite, merge | table, primary_key |
Files (files, s3, gcs, azure_blob) | overwrite, error | path, format (csv, tsv, json, jsonl, parquet), file_name, layout, split_by, partition_by (Hive folders) |
Delta Lake (deltalake) | append, overwrite, merge | condition, when_matched, when_not_matched, when_not_matched_by_source, target_predicate, partition_by, schema_evolution, replace_where or whole_table |
A write needs a mode (overwrite, never replace). A key the writer does not read is an error. Modes that are
not safe to repeat (table append, files error) get a warning. A write whose sql reads an apply output's results
runs once the rows were sent, to record what was sent.
File names
Without file_name, path is the file. With it, path is a folder and layout adds subfolders. split_by: [col]
writes one file per distinct value, and the names may use {col}.
outputs:
- name: save_orders
connection: lake
step: orders
path: exports/orders
format: csv
mode: overwrite
layout: "{today:%Y/%m}" # exports/orders/2026/11/
file_name: "orders_{today:%Y%m%d}.csv" # orders_20261102.csv
| Placeholder | Renders |
|---|---|
{today}, {today:%Y-%m-%d} | The batch's UTC date (default %Y%m%d) |
{now}, {batch_ts}, {now:%Y%m%d%H%M%S} | The batch's UTC time (default %Y%m%dT%H%M%SZ) |
{today-1d:%Y%m%d}, {now+2h:%H} | A time with offsets (s m h d w; combinable: -1d+6h) |
{batch_id} | The batch's job id |
{run_id} | The run that made the batch: streamwright serve's run id, else the run's request id. One file per request (see downloads) |
{seq} | The split's 5-digit number (00001) |
{col}, {col:%Y%m} | A split_by column's value, reduced to [A-Za-z0-9._-] |
Times are pinned when the batch starts, so a retry writes the same names. file_name needs a placeholder and no
/. For a fixed name, set the file as path.
Apply outputs
An apply output sends its rows to a vendor's API, one operation per row, and keeps each row's outcome. Its
operation: names a connector's apply operation (for example Google Ads
ConversionUploadService.upload_click_conversions), and it takes apply: instead of mode. A completed batch is
never sent again. See Apply outputs.
Publish outputs
An output with operation: {service: message, method: publish} on a Kafka or SQS connection sends each row as one
JSON event.
- name: orders_loaded
connection: bus
operation:
service: message
method: publish
arguments: {destination: orders-loaded, key: order_id}
sql: SELECT order_id, origin FROM orders
arguments:destination; for Kafka,key(the column that keys each event); for SQS,group_id.- Delivery: at least once, after the batch's writes commit. Each event has a dedupe key (Kafka: the
dedupe-keyheader). - Limit: at most
runtime.limits.eventsper output per batch. - Events about what was written: select from
_commits(output,table_name,version,rows,batch_id) and_file_errors(step,path,reason).
Runtime and state
runtime sets DuckDB's resources, limits and the state store.
| Key | What it does | Default |
|---|---|---|
threads, memory_limit, temp_directory | DuckDB's settings | DuckDB's |
timeout_seconds | Fails a batch that runs longer | |
timezone | The time zone of relative dates (config today, -1d), of dates in read paths and file names, and of SQL's current_date: an IANA name, or "{{ config.NAME }}" of a string input (with fan-out, each pass's own) | UTC |
limits.events · limits.apply_rows | Most events per publish output · rows per apply output, per batch | 10000 · 100000 |
limits.reference_values · limits.read_groups | Most values of a {{ step.column }} reference · read groups of one file read | 10000 · 200 |
state | The state store (below) | none: nothing is kept |
fan_out | The earlier place of the work (top-level fan_out): runs the job once per item. See Lookups and fan-out | |
log.labels | Labels on every log line of the run. See logging options |
State store
The state store keeps each batch's status, pinned inputs and write receipts. So a failed run resumes where it stopped, and an output that already has a receipt is not written again.
runtime:
state:
sqlite: state.db
failed_job_policy: retry
| Key | What it does | Default |
|---|---|---|
sqlite · connection | A SQLite file, or a duckdb, postgres or mysql connection of the job | |
schema | The schema of the state tables (with connection) | streamwright |
ttl_seconds | How long a run's lease lasts before it must be renewed | 300 |
apply_migrations | Let the run create or upgrade the state tables (for development) | false |
failed_job_policy | What the next run does with a failed batch: abandon, retry or block (below) | abandon |
max_job_attempts | With retry: how many times a batch may start in all | 3 |
job_key | A batch with this key runs once (--job-key overrides it) | |
job_key_unique | Where a job key is unique: scope, or job (once in the whole job, whichever scope runs it first) | scope |
keep_job_keys | How long the key of a completed batch is kept, for example 90d; state purge deletes older ones | for good |
scope | Separate history per value, for example per client or per feed | "" |
lease | What one run at a time holds, when coarser than the scope: a client, an account (below) | the scope |
lock | How a held lease is met (policy, timeout), and tokens shared across scopes (below) |
Migrations are a deploy step. A run never changes the state tables itself: it fails while a migration is
pending. Run streamwright state migrate --url URL when you deploy, or use --apply-state-migrations in
development. A store made by an earlier release may lack tables added to its first migration since (such as
sw_cache): state check lists them as pending, and state migrate creates them.
Failed batches
The scope's next run handles a failed batch first, as failed_job_policy says:
| Policy | The next run | Suits |
|---|---|---|
abandon (default) | Gives it up and runs new work | Snapshot jobs. Keyed jobs should use retry |
retry | Resumes it with its pinned inputs, up to max_job_attempts, then acts as block | Incremental and broker jobs |
block | Stops (exit 1) until you run streamwright state retry or abandon | Jobs where a person must look at every failure |
A batch with a job_key runs once per scope (or once in the job, with job_key_unique: job): a later run with the
key does nothing. The batch claims the key (sw_job_keys) in the transaction that creates it, so two runs never both
run it. A batch abandoned having sent nothing lets its key go, so the work runs again; one that completed or sent
rows keeps it. streamwright state keys lists a job's keys; state forget-key lets one go. A key outlives its batch:
state purge deletes batches, and keys only past keep_job_keys.
Run history
Every run of a job with a state store adds one row to its run history (sw_runs) when it ends: its status, start,
duration, batches and fan-out passes. A run that fails before it has a batch is in the history too, with its error:
a lookup that cannot reach its database, say, or a job that is not valid (once its state database exists). No batch
would show that failure.
A run ends succeeded, failed, skipped (lock policy prune left it nothing) or busy (another run held its
lease). It also keeps what failed in each run: each fan-out pass or outer item that failed or was busy
(account=1004 feed=…), its batches and its error, up to 200 a run.
streamwright state runs --url sqlite:///state.db --job orders --status failed
streamwright state runs --url sqlite:///state.db --run-id sw_EUAh... # what failed in it
With --log-dir (or STREAMWRIGHT_LOG_DIR) a run also keeps its log in a file of its own, and
records where it is (sw_run_logs) from its start: state runs --run-id shows it, and the console shows it on
the run's page (Log tab; the store needs logs.dir).
The console lists the runs on its Runs page, with a page per run (its batches, outputs and
rows not applied) and per job, counts the jobs whose latest run failed where no batch shows it, and lists them under
Needs attention. A run's batches are those it made or resumed: a run that resumes an earlier run's batch notes
itself in the batch (resumed_by), so state list --request-id finds it under both. Dry runs and
jobs that fail validation are not recorded. The store's credentials may come from a lookup; a run that cannot open
its store says so in its log (run_not_recorded). state purge drops a job's old runs.
Scopes and locks
A run holds a lease, so one run per scope works at a time. Set scope to run one job for many clients side by side.
The run itself holds its leases, for all its passes: one owner (<run id>/<host>:<pid>:<random>), one row per lease
while it is held, renewed by one heartbeat until the run ends, uploads included. A run that dies leaves its rows to
expire; the next run takes them over, and a write of the old run fails from then on. An expired row is never renewed:
its run has lost it.
When another run holds the lease:
lock.policy | The run |
|---|---|
fail (default) | Is busy: it starts nothing more (what it did not start is busy too) and exits 75: run it again later |
wait | Waits up to lock.timeout, then is busy |
prune | Skips what is held (recorded as busy) and runs the rest; exit 0 |
runtime:
state:
sqlite: state.db
scope: "client:{{ config.client }}"
lock: {policy: wait, timeout: 5m}
When clients share items (an account two clients both list), lock the list input too:
lock:
each: "{{ config.accounts }}" # exactly one list input
as: account
token: "account:{{ account }}"
policy: prune # runs only the free accounts
For one shared resource, use lock: {token: report}.
Lock a coarser level
With fan-out, the scope names the innermost item, so each pass keeps its own batches and job
keys. lease locks a coarser level, taken where its inputs are:
runtime:
state:
scope: "acct:{{ account.user_acctid }}:feed:{{ feed.name }}" # each feed's history and job keys
lease: "acct:{{ account.user_acctid }}" # one run per account at a time
job_key: "{{ feed.version }}"
- A lease that reads only the run's inputs (or a job without fan-out) is taken before any item is looked up, and held until the run ends: a second run is busy at once.
- A lease that reads an item (the account) is taken when that item starts and released when its feeds are done. Its feeds share it: one row per account, not per feed.
- Leases nest by name:
acct:1:feed:7is underacct:1. A run that holdsclient:xand one that holdsclient:x:acct:1exclude each other. - Before letting a lease go, the run resumes the unfinished batches under it that none of its passes touched, for
example a feed that left the listing, or one of a scope the job no longer makes. A batch records its lease
(
sw_jobs.lease). Underfailed_job_policy: abandon, failed ones are given up without running. One that cannot be resumed fails the run;state abandongives it up. leasemay use only inputs the scope uses, and does not go withlock.each. The state store must be the run's: its location reads no item.
Broker batch modes
A job with a consume step runs one batch per run by default.
| Option | Runs batches |
|---|---|
--once (default) | One: unfinished batches resume, then one new batch |
--drain | Until a poll finds no message |
--available-now | Until the messages there at the start are processed (SQS runs as --drain) |
--follow [--interval 10s] | Until interrupted (exit 130), pausing after an empty poll |
--max-messages N (default 500) caps a batch. 0 only resumes unfinished batches.
Commands
streamwright validate | plan | run JOB send a DuckDBJob to this engine. Validation never needs secret values.
streamwright run orders.yaml --secrets secrets.yaml # run; unfinished batches resume first
streamwright state list --url sqlite:///state.db # list batches (the job's runtime.state database)
streamwright state retry --url sqlite:///state.db JOB_ID && streamwright run orders.yaml # resume a failed batch
streamwright state ACTION --url URL looks after batches, from the job's state database alone (no job file, no
config):
| Action | Does |
|---|---|
list · show JOB_ID | List batches (--job, --scope, --status, --request-id) · one batch, with its pinned inputs, receipts and rows |
retry JOB_ID · abandon JOB_ID | Resume a failed batch at the next run · give it up |
resend JOB_ID · skip JOB_ID | Apply rows with an unknown outcome: send again on the next run · mark failed. See Apply outputs |
ack · unack · acks | Acknowledge a problem the console lists, so it leaves Needs attention · undo it · list them |
leases · purge · migrate · check | Lease tokens · delete old finished batches · create or upgrade the state tables · exit 1 while a migration is pending |
See the CLI reference for every option and state action.
Other ways to run
The same job file runs from the CLI (streamwright run or sw run), or as a service:
streamwright serve takes HTTP requests and streamwright worker runs them. To run the same steps on
Spark, write kind: SparkJob (SparkJob).
Folders and overlays
Keep one folder per system and one file per job, named for what it produces (analytics/orders.yaml, with
name: analytics_orders). Put environment overlays, such as orders.local.yaml, beside the job and pass them with
--overlay. An overlay is merged onto the job; a null deletes a key.
streamwright run jobs/analytics/orders.yaml --overlay jobs/analytics/orders.local.yaml
See also
- Lookups and fan-out: fetch credentials at run time and run once per account.
- Input payloads: hand a run its rows.
- Apply outputs: send rows to vendor APIs.
- Serving jobs over HTTP: run jobs through a REST API.
- SparkJob: the same manifest on Spark.