-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Materialize all assets daily (#1819)
* wip * Setup all assets to materialize daily * Enable automatic retries * Remove unnecessary file * rename * remove change * Fix tests * ci fix * More fixes
- Loading branch information
Showing
9 changed files
with
186 additions
and
132 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
|
@@ -12,3 +12,4 @@ | |
from .types import * | ||
from .alerts import * | ||
from .http import * | ||
from .scheduling import * |
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,16 @@ | ||
from dagster import FreshnessPolicy | ||
from .types import params_from | ||
|
||
|
||
@params_from(FreshnessPolicy) | ||
def production_freshness_policy(*args, **kwargs) -> FreshnessPolicy | None: | ||
"""Creates a freshness policy that is automatically disabled in a | ||
non-production mode.""" | ||
|
||
# Lazily import this because importing constants in the utils forces the | ||
# need to certain environment variables. | ||
from .. import constants | ||
|
||
if constants.env == "production": | ||
return FreshnessPolicy(*args, **kwargs) | ||
return None |
Oops, something went wrong.