Differential D4837 Diff 24279 python_modules/dagster-graphql/dagster_graphql/implementation/context.py
Changeset View
Changeset View
Standalone View
Standalone View
python_modules/dagster-graphql/dagster_graphql/implementation/context.py
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | class DagsterGraphQLContext: | ||||
def get_external_schedule_execution_data(self, repository_handle, schedule_name): | def get_external_schedule_execution_data(self, repository_handle, schedule_name): | ||||
return self._repository_locations[ | return self._repository_locations[ | ||||
repository_handle.repository_location_handle.location_name | repository_handle.repository_location_handle.location_name | ||||
].get_external_schedule_execution_data( | ].get_external_schedule_execution_data( | ||||
self.instance, repository_handle, schedule_name, ScheduleExecutionDataMode.PREVIEW, None | self.instance, repository_handle, schedule_name, ScheduleExecutionDataMode.PREVIEW, None | ||||
) | ) | ||||
def get_external_executable_param_data(self, repository_handle, executable_name): | def get_external_job_param_data(self, repository_handle, job_name): | ||||
return self._repository_locations[ | return self._repository_locations[ | ||||
repository_handle.repository_location_handle.location_name | repository_handle.repository_location_handle.location_name | ||||
].get_external_executable_params(self.instance, repository_handle, executable_name) | ].get_external_job_params(self.instance, repository_handle, job_name) | ||||
def get_external_partition_set_execution_param_data( | def get_external_partition_set_execution_param_data( | ||||
self, repository_handle, partition_set_name, partition_names | self, repository_handle, partition_set_name, partition_names | ||||
): | ): | ||||
return self._repository_locations[ | return self._repository_locations[ | ||||
repository_handle.repository_location_handle.location_name | repository_handle.repository_location_handle.location_name | ||||
].get_external_partition_set_execution_param_data( | ].get_external_partition_set_execution_param_data( | ||||
repository_handle=repository_handle, | repository_handle=repository_handle, | ||||
partition_set_name=partition_set_name, | partition_set_name=partition_set_name, | ||||
partition_names=partition_names, | partition_names=partition_names, | ||||
) | ) |