Adam Ward
06/28/2023, 11:11 PMsean
06/28/2023, 11:29 PMinstance_for_test
that’s part of our public API. We use this extensively internally as well. You use it like this:
from dagster import instance_for_test
with instance_for_test() as instance:
some_job.execute_in_process(instance=instance)
...
You can use this approach to populate the test instance with various failed runs. This should allow you to set it up appropriately to test your job.Adam Ward
06/29/2023, 8:50 PMAdam Ward
06/29/2023, 8:51 PMsean
06/29/2023, 10:26 PM