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

Getting Error Deadline Exceeded when deploying model from Cloud Firestoer functions

Hello,

I currently have a firebase function that is set to deploy my AutoML tables model everyday at 5am. This has been working fine for the past month, up until the last week. I have been getting the following error below when the function attempts to deploy the model.

Error: 4 DEADLINE_EXCEEDED: Deadline exceeded

I watched a google tutorial and it recommend to return a promise from my cloud function. That seemed to work for 1 day, but I received the error again this morning.

I am going to try to implement a retry function, but I figured I would ask on here as well. Also, I am thinking that moving from autoML to VertexAI might help alleviate my issues. Any guidance here is helpful.

See below for my deploy model code:

 

const deploy_model = () => {

const client = new automl.v1beta1.AutoMlClient(config);

// Get the full path of the model.
const modelFullId = client.modelPath(projectId, computeRegion, modelId);

// Deploy a model with the deploy model request.
return client.deployModel({name: modelFullId})

}

 

1 3 2,253
3 REPLIES 3