MCPcopy Index your code
hub / github.com/cortexlabs/cortex / apiQueueName

Function apiQueueName

pkg/operator/resources/asyncapi/queue.go:56–62  ·  view source on GitHub ↗
(apiName string, initialDeploymentTime int64)

Source from the content-addressed store, hash-verified

54}
55
56func apiQueueName(apiName string, initialDeploymentTime int64) string {
57 // initialDeploymentTime is incorporated so that the queue name changes when doing a deploy after a delete
58 // (if the queue name doesn't change, the user would have to wait 60 seconds before recreating the queue)
59 initialDeploymentTimeStr := s.Int64(initialDeploymentTime)
60 initialDeploymentTimeID := initialDeploymentTimeStr[len(initialDeploymentTimeStr)-10:]
61 return config.ClusterConfig.SQSNamePrefix() + apiName + clusterconfig.SQSQueueDelimiter + initialDeploymentTimeID + ".fifo"
62}
63
64func deleteQueueByURL(queueURL string) error {
65 _, err := config.AWS.SQS().DeleteQueue(&sqs.DeleteQueueInput{

Callers 2

createFIFOQueueFunction · 0.85
getQueueURLFunction · 0.85

Calls 1

SQSNamePrefixMethod · 0.80

Tested by

no test coverage detected