(graph_identifier: str, config: dict)
| 25 | |
| 26 | |
| 27 | def submit_dataloading_job(graph_identifier: str, config: dict) -> str: |
| 28 | context = get_current_context() |
| 29 | with graphscope.flex.rest.ApiClient( |
| 30 | graphscope.flex.rest.Configuration(context.coordinator_endpoint) |
| 31 | ) as api_client: |
| 32 | api_instance = graphscope.flex.rest.JobApi(api_client) |
| 33 | response = api_instance.submit_dataloading_job( |
| 34 | graph_identifier, DataloadingJobConfig.from_dict(config) |
| 35 | ) |
| 36 | return response.job_id |
| 37 | |
| 38 | |
| 39 | def list_jobs() -> List[JobStatus]: |