L'trigger Pianifica ti consente di eseguire l'integrazione periodicamente a intervalli di tempo specifici.
Questo trigger è utile se vuoi eseguire l'integrazione automaticamente senza alcun intervento manuale. Ad esempio, puoi prendere in considerazione l'utilizzo dell'attivatore pianificato per il seguente tipo di attività:
Caricamento di file da un sistema a un altro a intervalli regolari
Invio di promemoria via email periodici
Sincronizzazione del database a intervalli regolari
Aggiungere un trigger Pianificazione
Per aggiungere un attivatore pianificato a un'integrazione nuova o esistente, segui questi passaggi:
Nella Google Cloud console, vai alla pagina Application Integration.
Nel menu di navigazione, fai clic su Integrations (Integrazioni).
Viene visualizzata la pagina Elenco integrazioni, che elenca tutte le integrazioni disponibili nel progetto Google Cloud.
Seleziona un'integrazione esistente o fai clic su Crea integrazione per crearne una nuova.
Se stai creando una nuova integrazione:
Inserisci un nome e una descrizione nel riquadro Crea integrazione.
Seleziona una regione per l'integrazione.
Seleziona un account di servizio per l'integrazione. Puoi modificare o aggiornare i dettagli dell'account di servizio di un'integrazione in qualsiasi momento dal riquadro infoRiepilogo dell'integrazione nella barra degli strumenti di integrazione.
Fai clic su Crea.
L'integrazione appena creata si apre nell'editor di integrazione.
Nella barra di navigazione dell'editor dell'integrazione, fai clic su Attivatori per visualizzare l'elenco degli attivatori disponibili.
Fai clic sull'elemento Trigger Pianificazione e posizionalo nel designer.
Configurare un trigger Pianificazione
Fai clic sull'elemento Trigger Pianificazione nell'editor di integrazione per visualizzare il riquadro di configurazione dell'attivatore.
Puoi configurare l'attivatore pianificato utilizzando una delle seguenti modalità:
Base: fornisce un'interfaccia utente per configurare la frequenza dell'esecuzione.
Avanzate: utilizza un'espressione cron per configurare la frequenza dell'esecuzione.
In modalità Base, puoi scegliere di eseguire l'integrazione in un momento specifico o a intervalli di un'ora. Se vuoi eseguire l'integrazione in un momento specifico, seleziona Esegui in un momento specifico dal menu a discesa Orari e imposta le seguenti proprietà:
Ora: l'ora (in formato 24 ore) in cui deve essere eseguita l'integrazione.
Giorni: i giorni in cui deve essere eseguita l'integrazione. Puoi scegliere di eseguire
l'integrazione ogni giorno, in giorni specifici della settimana, in un giorno specifico del
mese e così via.
Months: i mesi in cui deve essere eseguita l'integrazione. Puoi eseguire l'integrazione ogni mese o scegliere mesi specifici.
In modalità Avanzata, puoi specificare la frequenza dell'esecuzione utilizzando un'espressione CRON.
L'espressione cron ha cinque valori che devono essere specificati nel seguente ordine:
Minuto (0-59)
Ora (0-23)
Giorno del mese (1-31)
Mese, uno dei seguenti valori:
Un numero compreso tra 1 e 12
Un'abbreviazione di tre lettere del mese (ad es. gen, feb, mar e così via)
Giorno della settimana, uno dei seguenti valori:
Un numero compreso tra 0 e 6, che inizia con domenica come 0
Un'abbreviazione di tre lettere per il giorno (ad es. Lun, Mar, Mer e così via)
Ad esempio, per eseguire l'integrazione il primo giorno di ogni mese,
utilizza l'espressione di cron * * 1 * *.
Best practice
Come best practice, disattiva gli attivatori pianificati quando non sono più necessari.
Se lasci attivo un attivatore pianificatore ridondante, continuerà ad attivare automaticamente l'integrazione.
Per disattivare un attivatore della pianificazione, puoi procedere in uno dei seguenti modi:
Annullare la pubblicazione dell'integrazione contenente l'attivatore Pianificazione. L'integrazione non sarà più attiva e l'attivatore non verrà eseguito.
Sostituisci l'attivatore Pianifica con un altro attivatore e ripubblica l'integrazione.
La versione attiva dell'integrazione ripubblicata non utilizzerà l'trigger Pianificazione.
Elimina la versione corrente dell'integrazione. Puoi trovare l'opzione Elimina nell'elenco delle versioni accanto al nome dell'integrazione.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-08-25 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)."]]