Hi There, is it possible to schedule a Software-De...
# ask-community
s
Hi There, is it possible to schedule a Software-Defined Asset in Dagster? In the same way we can schedule a dagster job, like with this
Copy code
@schedule(
    cron_schedule="45 6 * * *",
    job=hello_cereal_job,
    execution_timezone="US/Central",
)
c
Yes - you can create a job from your assets, which can then be passed to a schedule.
Copy code
from dagster import asset, AssetGroup, schedule

@asset
def the_asset():
    ...

@schedule(AssetGroup(assets=[the_asset]).build_job())
def the_schedule():
    ...
s
Thanks!!
Also, can we have an asset return an output to an op and then have that op return an output back to an asset?