-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(repo): Use just one code location
- Loading branch information
Showing
26 changed files
with
66 additions
and
62 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 was deleted.
Oops, something went wrong.
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,4 @@ | ||
from .definitions import defs | ||
|
||
__all__ = ['defs'] | ||
|
File renamed without changes.
File renamed without changes.
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,48 @@ | ||
import dagster as dg | ||
from dagster_docker import PipesDockerClient | ||
|
||
from . import nwp, pv, sat | ||
|
||
|
||
class BaseStorageResource(dg.ConfigurableResource): | ||
"""A resource defining where to store external data. | ||
Consists of a location on disk accessible to the Dagster instance. | ||
Where possible all data not handled by Dagster's IO managers (e.g. | ||
data downloaded via dagster pipes docker instances) will use this | ||
path as a base location. | ||
""" | ||
|
||
location: str | ||
|
||
nwp_assets = dg.load_assets_from_package_module( | ||
package_module=nwp, | ||
group_name="nwp", | ||
key_prefix="nwp", | ||
) | ||
|
||
sat_assets = dg.load_assets_from_package_module( | ||
package_module=sat, | ||
group_name="sat", | ||
key_prefix="sat", | ||
) | ||
|
||
pv_assets = dg.load_assets_from_package_module( | ||
package_module=pv, | ||
group_name="pv", | ||
key_prefix="pv", | ||
) | ||
|
||
defs = dg.Definitions( | ||
assets=[*nwp_assets, *sat_assets, *pv_assets], | ||
resources={ | ||
"pipes_subprocess_client": dg.PipesSubprocessClient(), | ||
"pipes_docker_client": PipesDockerClient(), | ||
"base_storage_resource": BaseStorageResource( | ||
location=dg.EnvVar("BASE_STORAGE_PATH"), | ||
), | ||
}, | ||
jobs=[], | ||
schedules=[], | ||
) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
|
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