-
Notifications
You must be signed in to change notification settings - Fork 1
Polyglot Workflows
O-O1112 edited this page Aug 22, 2026
·
1 revision
Block is most useful when each stage uses the language that already fits the task.
<py>
rows = [10, 20, 30]
result = {"count": len(rows), "total": sum(rows)}
</py>
<js>
console.log(`count=${result.count}, total=${result.total}`)
</js>
<json>
{
"result": {{result}}
}
</json>
- Keep each runtime block focused on one responsibility.
- Pass plain data at the boundary.
- Name the values that downstream stages need.
- Run
block checkbefore executing a workflow. - Keep secrets and live connections inside the stage that owns them.
Block is a good fit for local ETL, report generation, automation, teaching, and AI-assisted workflows where the complete sequence should remain visible in one file.
It is not intended to hide arbitrary shell commands or replace a mature runtime's package ecosystem.
Block Wiki