---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Jobs and workflows

Choose how to run a task by the result your workspace needs.

## Build a warehouse table

A pipeline job materializes warehouse data. Use jobs for source observations, transformations, joins and calculated totals. In the deployed starter, the refresh job calculates revenue from sample orders. List the jobs, run refresh and open its run to see which assets materialized. Compare the daily totals with the input orders.

Terminal

```
segmentstream job list
segmentstream job run refresh
segmentstream job runs refresh
```

[Pipeline SDK](https://segmentstream.com/docs/sdk/pipeline)

## Change operational records

Use an action for a change to records in one transaction. A workflow can coordinate actions, wait, or read a paginated provider. Each step should tolerate a retry. Inspect the deployed workflow to see the order of its steps.

One workflow as a map read from its code: what starts it, each step with what it reads and calls, and what happens when a step fails.

## Link analytical data

For example, show an account’s calculated revenue alongside its operational record by relating a warehouse-backed entity to the stored account. Declare the join properties and read permissions. After a job finishes, compare one account’s number with the materialized row and check that an authorized member can see it.

[Read as Markdown ↗](https://segmentstream.com/docs/jobs-and-workflows.md)
