def _sqlite_asset_instance():
     with seven.TemporaryDirectory() as temp_dir:
         instance = DagsterInstance(
             instance_type=InstanceType.EPHEMERAL,
             local_artifact_storage=LocalArtifactStorage(temp_dir),
             run_storage=InMemoryRunStorage(),
             event_storage=ConsolidatedSqliteEventLogStorage(temp_dir),
             compute_log_manager=LocalComputeLogManager(temp_dir),
             run_launcher=SyncInMemoryRunLauncher(),
         )
         yield instance
Example #2
0
 def _sqlite_asset_instance():
     with tempfile.TemporaryDirectory() as temp_dir:
         instance = DagsterInstance(
             instance_type=InstanceType.EPHEMERAL,
             local_artifact_storage=LocalArtifactStorage(temp_dir),
             run_storage=InMemoryRunStorage(),
             event_storage=ConsolidatedSqliteEventLogStorage(temp_dir),
             compute_log_manager=LocalComputeLogManager(temp_dir),
             run_coordinator=DefaultRunCoordinator(),
             run_launcher=SyncInMemoryRunLauncher(),
             scheduler=FilesystemTestScheduler(temp_dir),
         )
         yield instance