Feature/simpl 24306

This commit is contained in:
Tamas Papp
2026-04-15 05:59:00 +00:00
parent bb95b381fe
commit 2125933d3d
9 changed files with 189 additions and 0 deletions

View File

View File

@@ -0,0 +1,9 @@
from dagster import job
from ..ops.ops import fetch_data, process_data
@job
def data_processing_job():
"""A simple job that fetches and processes data."""
raw = fetch_data()
process_data(raw)

View File

@@ -0,0 +1,13 @@
from dagster import op
@op
def fetch_data() -> list:
"""Fetches raw data from a source."""
return [{"id": 1, "value": "A"}, {"id": 2, "value": "B"}]
@op
def process_data(data: list) -> dict:
"""Processes raw data and returns a summary."""
return {"count": len(data), "status": "success"}

View File

@@ -0,0 +1,6 @@
from dagster import Definitions
from .jobs.jobs import data_processing_job
defs = Definitions(
jobs=[data_processing_job],
)