def crawl_main():
result = all_assets_job.execute_in_process()
if name == "__main__":
crawl_main()
i have created an asset job named all assets job , i am triggering it using above mentioned command but i am getting error "'UnresolvedAssetJobDefinition' object has no attribute 'execute_in_process'" . Can someone pls help with example how to trigger the job
d
DDuran
02/20/2024, 6:13 PM
Hi, you should define the assets in the init.py at the root of your project with :
defs = Definitions(
assets=all_assets,
jobs=all_jobs,
schedules=all_schedules,
resources=resources_by_env[os.getenv("ENV","local")],
)