https://dagster.io/ logo
Title
k

Konrad Schlatte

10/31/2022, 5:58 PM
Is there a way to use more than one airbyte configuration (resource) in one job ? So having two resource definitions but running them in one job consecutively with the run_after argument? So this is if I have two airbyte instances running.
b

ben

10/31/2022, 7:02 PM
Hi Konrad, I believe there is a limitation about two separately configured resources with the same key in a single job - you could use an asset sensor to have two jobs trigger sequentially to accomplish something similar
We could provide the ability to change the asset key (to avoid that collision issue). That way you could have a set of assets pointed at one resource key and a set pointed at another. Would that be useful for your use-case?
k

Konrad Schlatte

11/01/2022, 11:45 AM
ok yes a sensor could be a solution - can you point me to an example of a sensor that triggers a job when another job has successfully finished?
b

ben

11/01/2022, 3:30 PM
Hi Konrad, I believe you can use a run status sensor: https://docs.dagster.io/_apidocs/schedules-sensors#dagster.run_status_sensor
Alternatively, if you are using Assets, an Asset Sensor might be a good choice: https://docs.dagster.io/concepts/partitions-schedules-sensors/asset-sensors#asset-sensors-1
k

Konrad Schlatte

11/01/2022, 4:30 PM
ok thanks I just want to trigger an airbyte_job when another airbyte_job has finished so I suppose a run_status sensor would make sense