Benedikt Buchert
01/02/2023, 4:50 PMdefs = with_resources(
load_assets_from_package_module(assets),
resources
)
And then:
@repository
def deploy_docker_repository():
return [my_job, my_step_isolated_job, my_schedule, defs]
Rob Myers
01/02/2023, 6:28 PMBenedikt Buchert
01/02/2023, 8:20 PMben
01/04/2023, 9:44 PMload_assets_from_package_module
which we are working on a fix for. If you import the assets directly (e.g. from .assets import my_fivetran_assets
) you should be able to use them (wrap in with_resources, add to repository etc)Rob Myers
01/05/2023, 8:06 AMben
01/05/2023, 3:18 PMassets.py
my_airbyte_assets = load_assets_from_fivetran_instance(...)
@asset
def my_other_asset():
...
then you can explicitly import the Airbyte assets from the module, e.g.
__init__.py
from . import assets
from .assets import my_airbyte_assets
defs = with_resources(
[*load_assets_from_package_module(assets), my_airbyte_assets],
resources
)
assets.py
my_airbyte_assets = load_assets_from_fivetran_instance(...)
@asset
def my_other_asset():
...
__init__.py
from . import assets
defs = with_resources(
load_assets_from_package_module(assets),
resources
)
Benedikt Buchert
01/06/2023, 7:30 AMRob Myers
01/06/2023, 9:17 AMBenedikt Buchert
01/06/2023, 12:36 PM