La tâche Minuteur vous permet d'ajouter un délai au flux d'exécution de l'intégration.
Lors d'une exécution d'intégration, lorsque le contrôle atteint la tâche Minuteur, l'exécution est mise en pause pour la durée spécifiée et toutes les tâches suivantes sont suspendues. Cette tâche n'accepte que la reprise automatique d'une intégration. L'exécution de l'intégration reprend automatiquement après l'expiration du délai de suspension. Par exemple, si vous définissez la tâche de minuteur sur 180 secondes, l'exécution est suspendue pendant trois minutes avant de reprendre automatiquement.
Comparer les opérations Approbation, Suspendre et Minuteur
Les trois tâches (Approbation, Suspendre et Minuteur) exécutent une fonction similaire de mise en pause et de reprise d'une intégration. Toutefois, il existe des différences subtiles entre elles. Le tableau suivant décrit les différences entre les trois tâches.
Tâche Approbation
Tâche Suspendre
Tâche Minuteur
N'est pas compatible avec la reprise automatique d'une intégration et nécessite une intervention manuelle pour reprendre l'intégration.
Compatible avec la reprise manuelle et automatique d'une intégration. En l'absence d'une intervention manuelle pour révoquer la suspension, l'intégration reprend automatiquement l'exécution après l'expiration du délai de suspension.
Compatible uniquement avec la reprise automatique d'une intégration. L'exécution de l'intégration reprend automatiquement après l'expiration du délai de suspension.
Impossible de reprendre une intégration via un appel d'API. Vous devez résoudre manuellement la suspension à l'aide de l'interface utilisateur Apigee Integration.
Peut reprendre une intégration à l'aide de l'API Suspensions pour les intégrations.
Compatible uniquement avec la reprise automatique d'une intégration.
Les utilisateurs reçoivent une notification lorsqu'une intégration est mise en pause (suspendue).
Les utilisateurs ne reçoivent aucune notification lorsqu'une intégration est mise en pause (suspendue).
Les utilisateurs ne reçoivent aucune notification lorsqu'une intégration est mise en pause (suspendue).
Compatible avec une variable de sortie (booléenne), qui vous permet d'effectuer des vérifications conditionnelles avant de reprendre l'intégration. Cependant, la variable de sortie ne peut avoir que la valeur true ou false.
Compatible avec une variable de sortie (chaîne), qui vous permet d'effectuer des vérifications conditionnelles avant de reprendre l'intégration. Vous pouvez définir n'importe quelle valeur pour la variable de sortie.
Non compatible avec les variables de sortie.
Configurer la tâche Minuteur
Pour configurer la tâche Minuteur, procédez comme suit :
Dans la console Google Cloud , accédez à la page Application Integration (Intégration d'applications).
Dans le menu de navigation, cliquez sur Intégrations.
La page Intégrations s'affiche et liste toutes les intégrations disponibles dans le projet Google Cloud.
Sélectionnez une intégration existante ou cliquez sur Créer une intégration pour en créer une.
Si vous créez une intégration :
Saisissez un nom et une description dans le volet Créer une intégration.
Sélectionnez une région pour l'intégration.
Sélectionnez un compte de service pour l'intégration. Vous pouvez modifier ou mettre à jour les informations du compte de service d'une intégration à tout moment dans le volet infoRécapitulatif de l'intégration de la barre d'outils d'intégration.
Cliquez sur Créer. L'intégration nouvellement créée s'ouvre dans l'éditeur d'intégration.
Dans la barre de navigation de l'éditeur d'intégrations, cliquez sur Tâches pour afficher la liste des tâches et des connecteurs disponibles.
Cliquez sur l'élément de tâche Minuteur et placez-le dans l'éditeur d'intégrations.
Cliquez sur l'élément de la tâche Minuteur dans le concepteur pour afficher le volet de configuration de la tâche Minuteur.
Configurez les champs restants à l'aide des propriétés de configuration de la tâche. Par exemple, si vous définissez Expiration après sur 180 et Unité de temps sur Seconds, l'exécution est suspendue pendant trois minutes avant de reprendre automatiquement.
Les modifications que vous avez apportées aux propriétés sont enregistrées automatiquement.
Propriétés de configuration
Le tableau suivant décrit les propriétés de configuration de la tâche Minuteur.
Propriété
Type de données
Description
Timeout after
Integer
Délai pendant lequel l'exécution de l'intégration doit être mise en pause. L'exécution reprend automatiquement avec la tâche suivante en aval après l'expiration du délai.
Unité de temps pour la propriété Expiration après.
Stratégie de traitement des erreurs
Une stratégie de traitement des erreurs d'une tâche spécifie l'action à effectuer si celle-ci échoue en raison d'une erreur temporaire. Pour en savoir plus sur l'utilisation et les différents types de stratégies de traitement des erreurs, consultez la page Stratégies de traitement des erreurs.
Quotas et limites
Pour plus d'informations sur les quotas et les limites, consultez la section Quotas et limites.
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\u003eThe Timer task in Application Integration allows you to pause integration execution for a specified duration before automatically resuming.\u003c/p\u003e\n"],["\u003cp\u003eUnlike the Approval and Suspend tasks, the Timer task only supports automatic resumption and does not require or allow manual intervention.\u003c/p\u003e\n"],["\u003cp\u003eThe Timer task's pause duration is configurable via the "Timeout after" property and "Time unit," with a default of 120 seconds (2 minutes) and a maximum limit of 31 days.\u003c/p\u003e\n"],["\u003cp\u003eThe Timer task does not support output variables or user notifications when an integration pauses, differing from other similar tasks like the Approval and Suspend tasks.\u003c/p\u003e\n"],["\u003cp\u003eYou can configure a Timer task to pause an integration by setting a desired timeout and time unit in the task configuration pane, and this task is part of the broader set of supported connectors for Application Integration.\u003c/p\u003e\n"]]],[],null,["# Timer task\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nTimer task\n==========\n\nThe **Timer** task lets you add a time delay to the\nintegration execution flow.\n\nDuring an integration execution, when the control reaches the Timer task, execution is paused for the specified time limit, and all tasks after the Timer task are suspended. This task supports only automatic resumption of an integration. The integration execution automatically resumes after the expiry of the suspension time limit. For example, if you set the timer task to 180 seconds, the execution is paused for 3 minutes before resuming automatically.\n| **Note:** If you set the timer task to less than 60 seconds, the suspend state will be consistent as synchronous execution mode. Otherwise, the suspend state is consistent with the asynchronous execution mode.\n\nCompare Approval task, Suspend task, and Timer task\n---------------------------------------------------\n\nAll the three ([Approval](/application-integration/docs/approval-task),\n[Suspend](/application-integration/docs/run-suspend-task),\nand [Timer](/application-integration/docs/run-timer-task)) tasks perform a similar\nfunction of pausing and resuming an integration. However, there are subtle differences\namong them. The following table describes the differences amongst the three tasks.\n\nConfigure the Timer task\n------------------------\n\nTo configure the **Timer** task:\n\n1. In the Google Cloud console, go to the **Application Integration** page.\n\n [Go to Application Integration](https://console.cloud.google.com/integrations)\n2. In the navigation menu, click **Integrations** .\n\n\n The **Integrations** page appears listing all the integrations available in the Google Cloud project.\n3. Select an existing integration or click **Create integration** to create a new one.\n\n\n If you are creating a new integration:\n 1. Enter a name and description in the **Create Integration** pane.\n 2. Select a region for the integration. **Note:** The **Regions** dropdown only lists the regions provisioned in your Google Cloud project. To provision a new region, click **Enable Region** . See [Enable new region](/application-integration/docs/enable-new-region) for more information.\n 3. Select a service account for the integration. You can change or update the service account details of an integration any time from the info **Integration summary** pane in the integration toolbar. **Note:** The option to select a service account is displayed only if you have enabled integration governance for the selected region.\n 4. Click **Create** . The newly created integration opens in the *integration editor*.\n\n\n4. In the *integration editor* navigation bar, click **Tasks** to view the list of available tasks and connectors.\n5. Click and place the **Timer** task element in the integration editor.\n6. Click the **Timer** task element on the designer to view the **Timer** task configuration pane.\n7. Configure the remaining fields using the [Configuration properties](#params) for the task. For example, if you set **Timeout after** to `180` and **Time unit** to `Seconds`, the execution is paused for 3 minutes before resuming automatically.\n8. Changes to the properties are saved automatically.\n\nConfiguration properties\n------------------------\n\n\nThe following table describes the configuration properties of the Timer task.\n\nError handling strategy\n-----------------------\n\n\nAn error handling strategy for a task specifies the action to take if the task fails due to a [temporary error](/application-integration/docs/error-handling). For information about how to use an error handling strategy, and to know about the different types of error handling strategies, see [Error handling strategies](/application-integration/docs/error-handling-strategy).\n\nQuotas and limits\n-----------------\n\nFor information about quotas and limits, see [Quotas and limits](/application-integration/docs/quotas).\n\nWhat's next\n-----------\n\n- Learn about [all tasks and triggers](/application-integration/docs/all-triggers-tasks).\n- Learn how to [test and publish an integration](/application-integration/docs/test-publish-integrations).\n\n- Learn about [error handling](/application-integration/docs/error-handling-strategy).\n- Learn about [integration execution logs](/application-integration/docs/introduction-logs)."]]