MCPcopy Create free account
hub / github.com/alibaba/GraphScope / submit_dataloading_job

Function submit_dataloading_job

python/graphscope/gsctl/impl/job.py:27–36  ·  view source on GitHub ↗
(graph_identifier: str, config: dict)

Source from the content-addressed store, hash-verified

25
26
27def 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
39def list_jobs() -> List[JobStatus]:

Callers 4

loaderjobFunction · 0.90
loaderjobFunction · 0.90
test_dataloadingMethod · 0.90
test_bulk_loadingMethod · 0.90

Calls 4

get_current_contextFunction · 0.90
ConfigurationMethod · 0.45
from_dictMethod · 0.45

Tested by 2

test_dataloadingMethod · 0.72
test_bulk_loadingMethod · 0.72