Nicolas Huray
04/24/2023, 7:35 PMcdi_id = "bnc_case"
result = job.execute_in_process(run_config=(RunConfig(
ops={
"customer_data_extract": RuntimeConfig(cdi_id=cdi_id, datagen=DataGenConfig(add=10)),
}
)), partition_key=cdi_id)
chris
04/24/2023, 10:13 PMdefine_asset_job
? If so, I don’t think we support execute_in_process
for that - would instead recommend using materialize
on the set of assetsNicolas Huray
04/24/2023, 10:57 PMdefine_asset_job
! What's the difference in this case between using materialize
and execute_in_process
?Nicolas Huray
04/24/2023, 10:58 PMchris
04/24/2023, 11:07 PMmaterialize
method on the Definitions
object, or an execute_in_process
method on Definitions
. The split is between ops and assets, not in how you initialize the job. The key thing is that with asset jobs, you don’t actually know what the assets defined are until specified on the Definitions
object, so you would have to provide the asset definitions when calling execute_in_process
, which is awkwardNicolas Huray
04/25/2023, 12:31 AMmaterialize
?chris
04/25/2023, 5:33 PM