def test_not_initialized(): # pylint: disable=redefined-outer-name run_launcher = DefaultRunLauncher() run_id = "dummy" assert run_launcher.join() is None assert run_launcher.can_terminate(run_id) is False assert run_launcher.terminate(run_id) is False
def _postgres_instance_with_default_hijack(): with seven.TemporaryDirectory() as temp_dir: with graphql_postgres_instance() as pg_conn_string: instance = DagsterInstance( instance_type=InstanceType.EPHEMERAL, local_artifact_storage=LocalArtifactStorage(temp_dir), run_storage=TestPostgresInstance.clean_run_storage(pg_conn_string), event_storage=TestPostgresInstance.clean_event_log_storage(pg_conn_string), compute_log_manager=LocalComputeLogManager(temp_dir), run_launcher=DefaultRunLauncher(), schedule_storage=TestPostgresInstance.clean_schedule_storage( pg_conn_string ), ) try: yield instance finally: instance.run_launcher.join()