Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Nesta página, mostramos como criar filas pull. É preciso criar a fila antes
de adicionar tarefas a ela. Também descrevemos como pausar ou excluir uma fila.
Como definir filas com queue.yaml
É possível definir filas pull usando o arquivo queue.yaml para o aplicativo.
O processo é o mesmo de criar filas push nomeadas, com uma diretiva especializada, mode: pull, adicionada ao arquivo.
queue:-name:my-queue-namemode:pull
Use o comando gcloud da CLI gcloud para fazer upload do arquivo.
gcloudappdeployqueue.yaml
Como desativar filas
Para desativar ou pausar uma fila, remova a definição dela do arquivo de configuração e faça o upload do arquivo atualizado.
Depois que o arquivo atualizado é carregado, a fila é definida como "desativada"
e sua taxa é definida como 0. Nem as tarefas que estiverem na fila nem as
novas tarefas adicionadas serão processadas. Para reativar a fila,
faça upload de um novo arquivo de fila com a fila definida.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-19 UTC."],[[["\u003cp\u003eThis guide details the process of creating pull queues using the \u003ccode\u003equeue.yaml\u003c/code\u003e file, which requires adding a \u003ccode\u003emode: pull\u003c/code\u003e directive and deploying the file via the \u003ccode\u003egcloud app deploy queue.yaml\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003ePull queues can be paused by removing their definition from the \u003ccode\u003equeue.yaml\u003c/code\u003e file and re-deploying, effectively setting the queue's rate to 0, but can be re-enabled by adding them back in.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a pull queue involves first disabling it by removing its definition from \u003ccode\u003equeue.yaml\u003c/code\u003e, uploading the updated file, and then using the Google Cloud console to complete the deletion.\u003c/p\u003e\n"],["\u003cp\u003eUsing a service account for queue configuration deployment requires the \u003ccode\u003eserviceusage.services.list\u003c/code\u003e permission, accessible through the \u003ccode\u003eserviceusage.serviceUsageViewer\u003c/code\u003e role or a custom role.\u003c/p\u003e\n"],["\u003cp\u003eMixing the \u003ccode\u003equeue.yaml\u003c/code\u003e method with Queue Management methods is discouraged, and using \u003ccode\u003egcloud\u003c/code\u003e CLI versions older than \u003ccode\u003e332.0.0\u003c/code\u003e for uploading \u003ccode\u003equeue.yaml\u003c/code\u003e can result in errors, requiring an update and enabled Cloud Tasks API.\u003c/p\u003e\n"]]],[],null,[]]