Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Scheduling Vertex AI Pipeline - Error 503

Hi,

I successfully trained and deployed a pipeline in Vertex AI using Kubeflow for a retrieval model, Two Towers.

Now I want to schedule this pipeline run every 8 minutes. Here's my code:

 

from kfp.v2.google.client import AIPlatformClient
api_client = AIPlatformClient(project_id='my-project', region='us-central1')

api_client.create_schedule_from_job_spec(
    job_spec_path='vacantes_pipeline.json',
    schedule="/8 * * * *", # every 8 minutes
    time_zone='America/Sao_Paulo',
    parameter_values={
        "epochs_": 5,
    "embed_length":768,  
        "maxsplit_" : 130
    }
)

 

The JSON is successfuly created, but the Scheduler Job fails immediately.

Logging tells me the httpRequest has an error 503 plus:

 

jsonPayload: {
@type: "type.googleapis.com/google.cloud.scheduler.logging.AttemptFinished"
jobName: "projects/my-project/locations/us-central1/jobs/pipeline_vacantes-pipeline-with-deployment_c7e98a8f_59-14-a-a-a"
status: "UNAVAILABLE"
targetType: "HTTP"
url: "https://us-central1-bogotatrabaja.cloudfunctions.net/templated_http_request-v1"
}

 

Any ideas on how to solve this issue ?

Solved Solved
1 2 2,182
1 ACCEPTED SOLUTION

I solved with Compute Engine and cron jobs.

View solution in original post

2 REPLIES 2