Revert "rename to remove quickstart"

This reverts commit ad8185ec5b.
This commit is contained in:
Alex Fox
2025-05-20 00:24:06 +00:00
parent ad8185ec5b
commit b67f0e17a4
12 changed files with 16 additions and 16 deletions

View File

@@ -0,0 +1,52 @@
from pathlib import Path
from dagster import (
Definitions,
ScheduleDefinition,
define_asset_job,
graph_asset,
link_code_references_to_git,
load_assets_from_package_module,
op,
with_source_code_references,
)
from dagster._core.definitions.metadata.source_code import AnchorBasedFilePathMapping
from . import assets
daily_refresh_schedule = ScheduleDefinition(
job=define_asset_job(name="all_assets_job"), cron_schedule="0 0 * * *"
)
@op
def foo_op():
return 5
@graph_asset
def my_asset():
return foo_op()
my_assets = with_source_code_references(
[
my_asset,
*load_assets_from_package_module(assets),
]
)
my_assets = link_code_references_to_git(
assets_defs=my_assets,
git_url="https://github.com/dagster-io/dagster/",
git_branch="master",
file_path_mapping=AnchorBasedFilePathMapping(
local_file_anchor=Path(__file__).parent,
file_anchor_path_in_repository="examples/quickstart_etl/quickstart_etl/",
),
)
defs = Definitions(
assets=my_assets,
schedules=[daily_refresh_schedule],
)