Skip to content

Commit

Permalink
chore(notifications): Bump dagster notification repository version (#209
Browse files Browse the repository at this point in the history
)
  • Loading branch information
devsjc authored Dec 6, 2024
1 parent e031c4a commit 35b05b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies = [
"eccodes == 2.38.3",
"ecmwf-api-client == 1.6.3",
"cfgrib == 0.9.14.1",
"dagster-pipes == 1.8.5",
"dagster-pipes == 1.9.3",
"joblib == 1.4.2",
"numpy == 2.1.0",
"ocf-blosc2 == 0.0.11",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import logging
from typing import override

from dagster_pipes import PipesContext, open_dagster_pipes
from dagster_pipes import open_dagster_pipes
from returns.result import ResultE, Success

from nwp_consumer.internal import entities, ports
Expand All @@ -28,9 +28,8 @@ def notify(
self,
message: entities.StoreCreatedNotification | entities.StoreAppendedNotification,
) -> ResultE[str]:
with open_dagster_pipes():
context = PipesContext.get()
context.report_asset_materialization(
with open_dagster_pipes() as pipesctx:
pipesctx.report_asset_materialization(
metadata={
"filename": {"raw_value": message.filename, "type": "text"},
"size_mb": {"raw_value": message.size_mb, "type": "float"},
Expand Down

0 comments on commit 35b05b1

Please sign in to comment.