-
Notifications
You must be signed in to change notification settings - Fork 2
1.8.5 #228
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
Merged
Merged
1.8.5 #228
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e0ad385
removing old svg
digitalghost-dev 213f893
normalizing hint text across commands (#225)
digitalghost-dev 3545510
creating helper function for help flag check (#226)
digitalghost-dev 64fd2ad
updating test files
digitalghost-dev 7f53af7
adding sensors
digitalghost-dev a8ea0cd
adding `CapitalizeResourceName()` utility (#227)
digitalghost-dev 59ae40a
adding python ci test
digitalghost-dev 6254263
adding `uv run`
digitalghost-dev 3d9a681
updating action version
digitalghost-dev 3b79629
adding AWS secret call for n8n webhook
digitalghost-dev ddef5ea
updating tests
digitalghost-dev b66ce30
moving small word formatter to `CaptializeResourceName()` (#227)
digitalghost-dev c943f65
moving `flag.Parse()` after help flag check
digitalghost-dev af43dfb
fixing race condition issue
digitalghost-dev 75338b5
adding `on push` option
digitalghost-dev bd889d3
making `hyphenHint` a `const`
digitalghost-dev 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
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,40 @@ | ||
| import requests | ||
| from dagster import DagsterRunStatus, RunStatusSensorContext, run_status_sensor | ||
|
|
||
| from .utils.secret_retriever import fetch_n8n_webhook_secret | ||
|
|
||
|
|
||
| @run_status_sensor(run_status=DagsterRunStatus.SUCCESS, name="discord_success_sensor") | ||
| def discord_success_sensor(context: RunStatusSensorContext): | ||
| context.log.info(f"Detected successful run: {context.dagster_run.run_id}") | ||
| try: | ||
| response = requests.post( | ||
| fetch_n8n_webhook_secret(), | ||
| json={ | ||
| "job_name": context.dagster_run.job_name, | ||
| "status": "SUCCESS", | ||
| "run_id": context.dagster_run.run_id, | ||
| }, | ||
| timeout=10, | ||
| ) | ||
| context.log.info(f"n8n response: {response.status_code}") | ||
| except Exception as e: | ||
| context.log.error(f"Failed to send notification: {e}") | ||
|
|
||
|
|
||
| @run_status_sensor(run_status=DagsterRunStatus.FAILURE, name="discord_failure_sensor") | ||
| def discord_failure_sensor(context: RunStatusSensorContext): | ||
| context.log.info(f"Detected failed run: {context.dagster_run.run_id}") | ||
| try: | ||
| response = requests.post( | ||
| fetch_n8n_webhook_secret(), | ||
| json={ | ||
| "job_name": context.dagster_run.job_name, | ||
| "status": "FAILURE", | ||
| "run_id": context.dagster_run.run_id, | ||
| }, | ||
| timeout=10, | ||
| ) | ||
| context.log.info(f"n8n response: {response.status_code}") | ||
| except Exception as e: | ||
| context.log.error(f"Failed to send notification: {e}") | ||
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
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
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
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.