Skip to main content

Multi-Service Endpoint Jobs

· One min read

trainML Endpoints can now be configured to attach multiple Regional Services at the same time.

This capability is not currently available using the Job Form. To attach multiple services using the Python SDK, supply an array of services to the endpoint configuration object:

endpoint=dict(
services=[
"http-service-id",
dict(
id="private-service-id-1",
target_port="5432",
),
dict(
id="private-service-id-2",
target_port="6379",
),
],
)

Only one HTTPS service is allowed per job. If multiple services are attached, the target_port configuration option must be provided as in the above example.