Hi team, quick question: I created an asset job us...
# ask-community
q
Hi team, quick question: I created an asset job using
Copy code
define_asset_job(name='my_name', selection=load_assets_from_current_module(group_name='my_group'))
This worked but I can't find the group in dagit. Is this the expected behaviour? Assets were assigned to the default group
y
i believe you’ll need to put
load_assets_from_current_module(group_name='my_group')
in the Definitions so dagster knows to load that group with the name. so something like:
Copy code
my_group = load_assets_from_current_module(group_name='my_group')
defs = Definitions(
  assets=my_group,
  jobs=[define_asset_job(name='my_name', selection=my_group)]
)