The Fabric Spark Job Definition job type runs a Microsoft Fabric
Spark Job Definition item via
POST /workspaces/{wsId}/items/{itemId}/jobs/instances?jobType=sparkjob.
The artefact is identified by its item ID — Polysync stores that
ID in the Job's External Id.
This job type is supported on the Microsoft Fabric platform.
Fabric Spark Job Definition (set automatically on
import).GET /workspaces/{workspaceId}/items?type=SparkJobDefinition
(paginated with continuationToken).
Spark Job Definitions consume parameters via the command line. Polysync
flattens Input + Input&Output parameters into the
commandLineArguments string in --name value form:
{
"executionData": {
"commandLineArguments": "--name1 value1 --name2 value2"
}
}
| Direction | Sent in jobs/instances |
Updated from response |
|---|---|---|
Input |
✅ (as CLI arg) | ❌ |
Output |
❌ | ❌ (not supported) |
Input&Output |
✅ (as CLI arg) | ❌ (not supported) |
Output parameters are not supported.
Values are stringified — your Spark entry-point must parse the CLI arguments itself (e.g.,
argparse,Args(args).getOrElse).
Same as Fabric Notebook:
jobs/instances?jobType=sparkjob.GET .../jobs/instances/{instanceId} for status (same mapping
table).POST /jobs/instances/{instanceId}/cancel.https://app.fabric.microsoft.com/groups/{workspaceId}/sparkjobdefinitions/{itemId}
- or = to keep the
generated argument list parseable.