-
Notifications
You must be signed in to change notification settings - Fork 3.5k
feat(block): Add Dagster block #3924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
abhinavDhulipala
wants to merge
5
commits into
simstudioai:staging
from
abhinavDhulipala:dg-integration
Closed
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
473ea94
feat(blocks): add dagster block
abhinavDhulipala 0eca5e8
type safety improvements
abhinavDhulipala bd5b89b
unify error handeling across dg tool
abhinavDhulipala d0b45c1
update icon to daggy
abhinavDhulipala c53f2b7
update icon to daggy
abhinavDhulipala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,141 @@ | ||
| --- | ||
| title: Dagster | ||
| description: Orchestrate data pipelines and manage job runs on Dagster+ | ||
| --- | ||
|
|
||
| import { BlockInfoCard } from "@/components/ui/block-info-card" | ||
|
|
||
| <BlockInfoCard | ||
| type="dagster" | ||
| color="#191A23" | ||
| /> | ||
|
|
||
| ## Usage Instructions | ||
|
|
||
| Connect to Dagster+ to launch job runs, monitor run status, list available jobs across repositories, and terminate in-progress runs. Requires a Dagster Cloud API token. | ||
|
|
||
|
|
||
|
|
||
| ## Tools | ||
|
|
||
| ### `dagster_launch_run` | ||
|
|
||
| Launch a Dagster job run in your Dagster+ deployment. | ||
|
|
||
| #### Input | ||
|
|
||
| | Parameter | Type | Required | Description | | ||
| | --------- | ---- | -------- | ----------- | | ||
| | `organizationName` | string | Yes | Dagster+ organization name \(subdomain, e.g., "myorg"\) | | ||
| | `deploymentName` | string | Yes | Dagster+ deployment name \(e.g., "prod"\) | | ||
| | `apiKey` | string | Yes | Dagster Cloud API token | | ||
| | `repositoryLocationName` | string | Yes | Repository location \(code location\) name | | ||
| | `repositoryName` | string | Yes | Repository name within the code location | | ||
| | `jobName` | string | Yes | Name of the job to launch | | ||
| | `runConfigJson` | string | No | Run configuration as a JSON object \(optional\) | | ||
| | `tags` | string | No | Tags as a JSON array of \{key, value\} objects \(optional\) | | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `runId` | string | The globally unique ID of the launched run | | ||
|
|
||
| ### `dagster_get_run` | ||
|
|
||
| Get the status and details of a Dagster run by its ID. | ||
|
|
||
| #### Input | ||
|
|
||
| | Parameter | Type | Required | Description | | ||
| | --------- | ---- | -------- | ----------- | | ||
| | `organizationName` | string | Yes | Dagster+ organization name \(subdomain\) | | ||
| | `deploymentName` | string | Yes | Dagster+ deployment name \(e.g., "prod"\) | | ||
| | `apiKey` | string | Yes | Dagster Cloud API token | | ||
| | `runId` | string | Yes | The ID of the run to retrieve | | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `runId` | string | Run ID | | ||
| | `jobName` | string | Name of the job this run belongs to | | ||
| | `status` | string | Run status \(QUEUED, NOT_STARTED, STARTING, MANAGED, STARTED, SUCCESS, FAILURE, CANCELING, CANCELED\) | | ||
| | `startTime` | number | Run start time as Unix timestamp | | ||
| | `endTime` | number | Run end time as Unix timestamp | | ||
| | `runConfigYaml` | string | Run configuration as YAML | | ||
| | `tags` | json | Run tags as array of \{key, value\} objects | | ||
|
|
||
| ### `dagster_list_runs` | ||
|
|
||
| List recent Dagster runs, optionally filtered by job name. | ||
|
|
||
| #### Input | ||
|
|
||
| | Parameter | Type | Required | Description | | ||
| | --------- | ---- | -------- | ----------- | | ||
| | `organizationName` | string | Yes | Dagster+ organization name \(subdomain\) | | ||
| | `deploymentName` | string | Yes | Dagster+ deployment name \(e.g., "prod"\) | | ||
| | `apiKey` | string | Yes | Dagster Cloud API token | | ||
| | `jobName` | string | No | Filter runs by job name \(optional\) | | ||
| | `limit` | number | No | Maximum number of runs to return \(default 20\) | | ||
| | `cursor` | string | No | Pagination cursor from a previous list_runs response | | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `runs` | json | Array of runs with runId, jobName, status, startTime, endTime | | ||
| | ↳ `runId` | string | Run ID | | ||
| | ↳ `jobName` | string | Job name | | ||
| | ↳ `status` | string | Run status | | ||
| | ↳ `startTime` | number | Start time as Unix timestamp | | ||
| | ↳ `endTime` | number | End time as Unix timestamp | | ||
| | `cursor` | string | Pagination cursor to retrieve the next page | | ||
| | `hasMore` | boolean | Whether more runs are available | | ||
|
|
||
| ### `dagster_list_jobs` | ||
|
|
||
| List all jobs across repositories in a Dagster+ deployment. | ||
|
|
||
| #### Input | ||
|
|
||
| | Parameter | Type | Required | Description | | ||
| | --------- | ---- | -------- | ----------- | | ||
| | `organizationName` | string | Yes | Dagster+ organization name \(subdomain\) | | ||
| | `deploymentName` | string | Yes | Dagster+ deployment name \(e.g., "prod"\) | | ||
| | `apiKey` | string | Yes | Dagster Cloud API token | | ||
| | `repositoryLocationName` | string | No | Filter by repository location name \(optional\) | | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `jobs` | json | Array of jobs with name, repositoryName, repositoryLocationName, and description | | ||
| | ↳ `name` | string | Job name | | ||
| | ↳ `repositoryName` | string | Repository name | | ||
| | ↳ `repositoryLocationName` | string | Repository location name | | ||
| | ↳ `description` | string | Job description | | ||
|
|
||
| ### `dagster_terminate_run` | ||
|
|
||
| Terminate an in-progress Dagster run. | ||
|
|
||
| #### Input | ||
|
|
||
| | Parameter | Type | Required | Description | | ||
| | --------- | ---- | -------- | ----------- | | ||
| | `organizationName` | string | Yes | Dagster+ organization name \(subdomain\) | | ||
| | `deploymentName` | string | Yes | Dagster+ deployment name \(e.g., "prod"\) | | ||
| | `apiKey` | string | Yes | Dagster Cloud API token | | ||
| | `runId` | string | Yes | The ID of the run to terminate | | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `success` | boolean | Whether the run was successfully terminated | | ||
| | `runId` | string | The ID of the terminated run | | ||
| | `message` | string | Error or status message if termination failed | | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,7 @@ | |
| "cloudflare", | ||
| "confluence", | ||
| "cursor", | ||
| "dagster", | ||
| "databricks", | ||
| "datadog", | ||
| "devin", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.