Si une exécution est suspendue en raison d'une tâche d'approbation ou d'un problème technique, vous pouvez choisir de l'annuler. Vous pouvez annuler l'exécution d'une intégration si elle se trouve dans l'un des états d'exécution suivants:
Suspendu
En attente
Réessayer en cas d'attente
Annuler une exécution
Pour annuler une exécution, sélectionnez l'une des options suivantes:
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/03 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/03 (UTC)."],[[["\u003cp\u003eYou can cancel integration executions that are in a Suspended, On hold, or Retry on hold state through the Application Integration console or API.\u003c/p\u003e\n"],["\u003cp\u003eThe cancel execution feature is currently a Pre-GA offering, which means it is available "as is" and may have limited support.\u003c/p\u003e\n"],["\u003cp\u003eTo cancel an execution via the console, navigate to the Logs page, select the desired execution, and use the 'Cancel' option, providing a reason for cancellation.\u003c/p\u003e\n"],["\u003cp\u003eCanceling executions triggered by a Schedule trigger is not supported, and executions in In process, Succeeded, Failed, or Canceled states cannot be canceled.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eprojects.locations.integrations.executions.cancel\u003c/code\u003e API method allows for execution cancellations by providing the project ID, region, integration name, and execution ID.\u003c/p\u003e\n"]]],[],null,["# Cancel executions\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nCancel executions\n=================\n\nIf you have an execution that is suspended due to an approval task or a technical issue, you can choose to cancel the execution. You can cancel an integration execution if the integration is in one of the following [execution states](/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions#state):\n\n- **Suspended**\n- **On hold**\n- **Retry on hold**\n\nCancel an execution\n-------------------\n\nTo cancel an execution, select one of the following options:\n\n### Console\n\n1. In **Application Integration** , go to the **Logs** page.\n\n [Go to Application Integration Logs](https://console.cloud.google.com/integrations/logs)\n2. In the navigation menu, click **Logs** . The **Execution Logs** page appears.\n3. For the execution that you want to cancel, click **more_vert** and then **cancel Cancel** . The **Cancel execution** pane appears.\n4. Add the reason to replay the execution.\n5. Click **Cancel Execution**.\n\n### API\n\nCall the [`projects.locations.integrations.executions.cancel` method](/application-integration/docs/reference/rest/v1/projects.locations.integrations.executions/cancel) and provide the ID of the execution that you want to cancel: \n\n```\ncurl -X POST https://integrations.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/integrations/INTEGRATION_NAME/executions/EXECUTION_ID:cancel -H \"Authorization: Bearer $TOKEN\"\n```\n\nLimitations\n-----------\n\nCancel execution is subject to the following limitations:\n\n- Canceling an execution that is triggered by a [Schedule trigger](/application-integration/docs/configure-schedule-trigger) isn't supported.\n- You can't cancel an integration execution if the integration is in one of the following states:\n - **In process**\n - **Succeeded**\n - **Failed**\n - **Canceled**\n\nWhat's next\n-----------\n\n- Learn about [logs in Application Integration](/application-integration/docs/introduction-logs).\n- Learn how to [test and publish integrations](/application-integration/docs/test-publish-integrations)."]]