Le Déclencheur de planification vous permet d'exécuter votre intégration périodiquement à des intervalles de temps spécifiques.
Ce déclencheur est utile lorsque vous souhaitez exécuter automatiquement votre intégration sans aucune intervention manuelle. Par exemple, vous pouvez envisager d'utiliser le déclencheur de planification pour les types de tâches suivants :
Importer des fichiers d'un système vers un autre système à intervalles réguliers
Envoyer des rappels périodiques par e-mail
Synchroniser la base de données à intervalles réguliers
Ajouter un déclencheur de planification
Pour ajouter un déclencheur de planification à une intégration nouvelle ou existante, 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 Liste des 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 Déclencheurs pour afficher la liste des déclencheurs disponibles.
Cliquez sur l'élément Déclencheur de planification et placez-le dans le concepteur.
Configurer un déclencheur de planification
Cliquez sur l'élément Déclencheur de planification dans l'éditeur d'intégrations pour afficher le volet de configuration du déclencheur.
Vous pouvez configurer le déclencheur de programmation à l'aide de l'un des modes suivants :
Basique : fournit une interface utilisateur pour configurer la fréquence d'exécution.
Avancé : utilise une expression Cron pour configurer la fréquence d'exécution.
En mode De base, vous pouvez choisir d'exécuter l'intégration à une heure spécifique ou à intervalles horaires. Si vous souhaitez exécuter l'intégration à une heure spécifique, sélectionnez l'option Exécuter à une heure spécifique dans le menu déroulant Heures, puis définissez les propriétés suivantes :
Time : heure (au format 24 heures) à laquelle l'intégration doit s'exécuter.
Days : jours où l'intégration doit être exécutée. Vous pouvez choisir d'exécuter l'intégration tous les jours, certains jours de la semaine, un jour spécifique du mois, etc.
Months : le ou les mois dans lesquels l'intégration doit être exécutée. Vous pouvez exécuter l'intégration tous les mois ou choisir des mois spécifiques.
En mode Avancé, vous pouvez spécifier la fréquence d'exécution à l'aide d'une expression Cron.
L'expression Cron comporte cinq valeurs qui doivent être spécifiées dans l'ordre suivant :
minute (0-59)
heure (0-23)
jour du mois (1-31)
mois, exprimé en l'une des valeurs suivantes :
Numéro 1-12
Une abréviation de trois lettres correspondant à un mois (par exemple, Jan, feb (February, février), Mar, etc.)
Jour de la semaine, exprimé en l'une des valeurs suivantes :
Nombre compris entre 0 et 6, commençant par dimanche en tant que 0
Code à trois lettres pour le jour (par exemple, mon (Monday, lundi), tue (Tuesday, mardi), wed (Wednesday, mercredi, etc.)
Par exemple, pour exécuter l'intégration le premier jour de chaque mois, utilisez l'expression Cron * * 1 * *
Bonnes pratiques
Nous vous recommandons de désactiver l'option Déclencheurs de planification lorsqu'ils ne sont plus nécessaires.
Si vous laissez un déclencheur de planification redondant actif, il continuera de déclencher automatiquement l'intégration.
Pour désactiver un déclencheur de planification, vous pouvez effectuer l'une des opérations suivantes :
Annulez la publication de l'intégration contenant le Déclencheur de planification. Votre intégration n'est alors plus active et le déclencheur n'est pas exécuté.
Remplacez le déclencheur de planification par un autre déclencheur et publiez à nouveau l'intégration.
La version active et republiée de l'intégration n'utilisera pas le déclencheur de planification.
Supprimez la version actuelle de l'intégration. Vous trouverez l'option Supprimer sous la liste des versions, à côté du nom de l'intégration.
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 Schedule trigger enables automatic, periodic execution of integrations without manual intervention, useful for tasks like file uploads, email reminders, and database syncing.\u003c/p\u003e\n"],["\u003cp\u003eSchedule triggers can be configured in either Basic mode, using a UI for frequency settings, or Advanced mode, using cron expressions for precise scheduling.\u003c/p\u003e\n"],["\u003cp\u003eIn Basic mode, the integration's run frequency can be set by choosing time, days and months to run it, while in Advanced mode it must be defined through cron expression.\u003c/p\u003e\n"],["\u003cp\u003eDeactivating unnecessary Schedule triggers is recommended to prevent unwanted automatic integration executions; options include unpublishing the integration, replacing the trigger, or deleting the integration.\u003c/p\u003e\n"],["\u003cp\u003eExecutions of active integrations that fail because of the schedule trigger will not be accounted for in the Application Integration SLA.\u003c/p\u003e\n"]]],[],null,["# Schedule trigger\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nSchedule trigger\n================\n\n\nThe **Schedule trigger** lets you run your integration periodically at specific time intervals.\nThis trigger is useful when you want to run your integration automatically without any manual\nintervention. For example, you can consider using the **Schedule trigger** for the\nfollowing type of tasks:\n\n- Uploading files from one system to another system at regular intervals\n- Sending periodic email reminders\n- Syncing database at regular intervals\n\nAdd a Schedule trigger\n----------------------\n\nTo add a **Schedule trigger** to a new or existing integration, perform the following steps:\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 List** 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**.\n\n\n The newly created integration opens in the *integration editor*.\n4. In the *integration editor* navigation bar, click **Triggers** to view the list of available triggers.\n5. Click and place the **Schedule trigger** element to the designer.\n\nConfigure a Schedule trigger\n----------------------------\n\nClick the **Schedule trigger** element in the integration editor to view the trigger configuration\npane.\n\nYou can configure the **Schedule trigger** using either of the following modes:\n\n- **Basic**: Provides a user interface to configure the frequency of the run.\n- **Advanced**: Uses a cron expression to configure the frequency of the run.\n\nIn **Basic** mode, you can choose to run the integration at a specific time\nor at hourly intervals. If you want to run the integration at a specific time, select\nthe **Run at a specific time** from the **Times** drop-down\nand set the following properties:\n\n- **Time**: The time (in 24-hour format) at which the integration must run.\n- **Days**: The days on which the integration must run. You can select to run the integration every day, on specific days of the week, on a specific day of the month, etc.\n- **Months**: The month(s) in which the integration must run. You can run the integration every month or choose specific months.\n\nIn **Advanced** mode, you can specify the frequency of the run using a cron expression.\nThe cron expression has five values that must be specified in the following order:\n\n- Minute (0-59)\n- Hour (0-23)\n- Day of the month (1-31)\n- Month, either of the following values:\n - A number 1-12\n - A three-letter month abbreviation (e.g. Jan, Feb, Mar, etc.)\n- Day of week, either of the following values:\n - A number from 0 - 6 starting with Sunday as 0\n - A three-letter day abbreviation (e.g. Mon, Tue, Wed, etc.)\n\nFor example, to run the integration on the first day of every month,\nuse the `* * 1 * *` cron expression.\n\nBest practices\n--------------\n\n\nAs a best practice, deactivate **Schedule triggers** when they are no longer needed.\nIf you leave a redundant **Schedule trigger** active, it will continue to trigger the integration\nautomatically.\n\nTo deactivate a **Schedule trigger**, you can do one of the following:\n\n- Unpublish the integration containing the **Schedule trigger**. Your integration will no longer be active and the trigger will not run.\n- Replace the **Schedule trigger** with a different trigger and re-publish the integration. The re-published, active version of the integration will not use the **Schedule trigger**.\n- Delete the current version of the integration. You can find the **Delete** option under the version list next to the integration name.\n\nSLA exclusions\n--------------\n\nAll executions of `active` integrations that fail because the Schedule trigger\ndidn't get scheduled for any reason, are excluded\nfrom the [Application Integration\nService Level Agreement (SLA)](https://cloud.google.com/application-integration/sla) terms and conditions.\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)."]]