Skip to content

Commit

Permalink
feat(defs): Add Sheffield Solar resource to definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Jan 21, 2025
1 parent 85608c5 commit 1843107
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dagster_dags/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from dagster_docker import PipesDockerClient

from .assets import nwp, pv, sat
from .resources import SheffieldSolarAPIResource

nwp_assets = dg.load_assets_from_package_module(
package_module=nwp,
Expand All @@ -28,6 +29,10 @@
resources={
"pipes_subprocess_client": dg.PipesSubprocessClient(),
"pipes_docker_client": PipesDockerClient(),
"ss_api": SheffieldSolarAPIResource(
user_id=dg.EnvVar("SS_USER_ID"),
api_key=dg.EnvVar("SS_API_KEY"),
),
},
jobs=[],
schedules=[],
Expand Down
2 changes: 2 additions & 0 deletions src/dagster_dags/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .sheffield_solar_api import SheffieldSolarAPIResource

0 comments on commit 1843107

Please sign in to comment.