-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7425c7
commit 893fe07
Showing
5 changed files
with
30 additions
and
22 deletions.
There are no files selected for viewing
Empty file.
This file contains 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 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,5 @@ | ||
### Basic Asset Sensor Example | ||
|
||
<CodeExample filePath="guides/automation/simple-asset-sensor-example.py" language="python" title="Simple Asset Sensor Example" /> | ||
|
||
This Asset Sensor will trigger a run of `my_job` whenever the `asset_to_watch` asset is materialized. |
This file contains 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,7 @@ | ||
### Basic Schedule Example | ||
|
||
<CodeExample filePath="guides/automation/simple-schedule-example.py" language="python" title="Simple Schedule Example" /> | ||
|
||
For more examples of schedules, see the [How-To Use Schedules](/guides/automation/schedules) guide. | ||
|
||
For more information about how Schedules work, see the [About Schedules](/concepts/schedules) concept page. |
This file contains 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,14 @@ | ||
### Basic Sensor Example | ||
|
||
This example includes a `check_for_new_files` function that simulates finding new files. In a real scenario, this function would check an actual system or directory. | ||
|
||
The sensor runs every 5 seconds. If it finds new files, it starts a run of `my_job`. If not, it skips the run and logs "No new files found" in the Dagster UI. | ||
|
||
<CodeExample filePath="guides/automation/simple-sensor-example.py" language="python" title="Simple Sensor Example" /> | ||
|
||
:::tip | ||
|
||
By default, sensors aren't enabled when first deployed to a Dagster instance. | ||
Click "Automation" in the top navigation to find and enable a sensor. | ||
|
||
::: |