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! Go to Solution.
I solved with Compute Engine and cron jobs.
Thanks so much for sharing! I am not a Vertex expert, but learning! Hoping others will weigh in, but this sounds like a permissions issue based on some other scenarios I've seen.
Here are some ideas on how to troubleshoot the issue of the Vertex AI Scheduler Job failing immediately with a 503 error:
I hope this helps!
I solved with Compute Engine and cron jobs.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |