Dario De Stefano
03/22/2023, 9:24 AMTobias Pankrath
03/22/2023, 9:27 AMcreate_asset_job
. The documentation sadly isn't very clear (to me) when you can use something thats described for ops and jobs also for assets (or how you do it)._ASSET_JOB_0
(at least for me) that materializes all of them.Dario De Stefano
03/22/2023, 9:46 AMVinnie
03/22/2023, 9:49 AMasset
is an op
, the significant difference between the two is that `asset`s track their outputs and dependencies. You can also configure assets at runtime by passing configs through the “materialize” button in the GUI or through the run requests. The usual advice is to use `asset`s whenever the operation materializes a persistent object that you wanna track and expose lineage for. If you wanna run an order of operations but not necessarily track every single output, you can use a graph-backed asset. Scheduling should work the same way either way, the only difference as Tobias said being that you need to wrap `asset`s in a job
and then schedule the job. I’m hoping this limitation will be removed in the future for full declarative scheduling (as a sidenote, you can use `sensor`s to materialize `asset`s without first defining a job
)
Regarding the course, I took it last year and even though I already knew a lot about Dagster, still felt like I left with a lot of nice little bonuses that I implemented in my work. I also know that Dennis has done a lot of work in the background since that edition (e.g. the concept of assets was still fairly fresh last November, so it wasn’t a major part of the course). Paging @dhumedhume
03/22/2023, 9:57 AMops
in the first week and end on assets
. The course will show the differences between them but still let you apply similar patterns (like schedules) to bothDario De Stefano
03/22/2023, 9:59 AMTobias Pankrath
03/22/2023, 11:23 AM(as a sidenote, you can use `sensor`s to materialize `asset`s without first defining aThat's new, isn't it? I am pretty sure I had to define a job for a sensor a couple of weeks ago, at least that's what was in the docs.)job
Vinnie
03/22/2023, 12:27 PMsandy
03/22/2023, 9:50 PMThat's new, isn't it? I am pretty sure I had to define a job for a sensor a couple of weeks ago, at least that's what was in the docs.Fairly new - a couple months ago