Tugas Timer memungkinkan Anda menambahkan penundaan waktu ke
alur eksekusi integrasi.
Selama eksekusi integrasi, saat kontrol mencapai tugas Timer, eksekusi dijeda selama batas waktu yang ditentukan, dan semua tugas setelah tugas Timer ditangguhkan. Tugas ini hanya mendukung pengaktifan kembali integrasi secara otomatis. Eksekusi integrasi akan otomatis dilanjutkan setelah batas waktu penangguhan berakhir. Misalnya, jika Anda menetapkan tugas timer ke 180 detik, eksekusi akan dijeda selama 3 menit sebelum dilanjutkan secara otomatis.
Membandingkan tugas Persetujuan, tugas Penangguhan, dan tugas Timer
Ketiga tugas (Approval,
Suspend,
dan Timer) melakukan fungsi
yang serupa untuk menjeda dan melanjutkan integrasi. Namun, ada perbedaan halus
di antara keduanya. Tabel berikut menjelaskan perbedaan di antara ketiga tugas tersebut.
Tugas persetujuan
Tugas penangguhan
Tugas timer
Tidak mendukung pengaktifan kembali integrasi secara otomatis dan memerlukan
intervensi manual untuk melanjutkan integrasi.
Mendukung kelanjutan integrasi secara manual dan otomatis. Jika tidak ada
intervensi manual untuk mencabut penangguhan, integrasi akan otomatis
melanjutkan eksekusi setelah batas waktu penangguhan berakhir.
Hanya mendukung pengaktifan kembali integrasi secara otomatis. Eksekusi integrasi
akan otomatis dilanjutkan setelah batas waktu penangguhan berakhir.
Tidak dapat melanjutkan integrasi melalui panggilan API. Anda harus menyelesaikan penangguhan secara manual menggunakan UI Integrasi.
Dapat melanjutkan integrasi menggunakan Suspensions API untuk integrasi.
Hanya mendukung pengaktifan kembali integrasi secara otomatis.
Pengguna akan menerima notifikasi saat integrasi dijeda (ditangguhkan).
Pengguna tidak menerima notifikasi apa pun saat integrasi dijeda (ditangguhkan).
Pengguna tidak menerima notifikasi apa pun saat integrasi dijeda (ditangguhkan).
Mendukung variabel output (boolean), yang memungkinkan Anda melakukan pemeriksaan bersyarat sebelum melanjutkan integrasi. Namun, variabel output hanya dapat memiliki nilai true atau false.
Mendukung variabel output (string), yang memungkinkan Anda melakukan pemeriksaan bersyarat
sebelum melanjutkan integrasi. Anda dapat menetapkan nilai apa pun ke variabel output.
Tidak mendukung variabel output apa pun.
Mengonfigurasi tugas Timer
Untuk mengonfigurasi tugas Timer:
Di Google Cloud console, buka halaman Application Integration.
Halaman Integrasi akan muncul yang mencantumkan semua integrasi yang tersedia di project Google Cloud.
Pilih integrasi yang ada atau klik Buat integrasi untuk membuat integrasi baru.
Jika Anda membuat integrasi baru:
Masukkan nama dan deskripsi di panel Buat Integrasi.
Pilih region untuk integrasi.
Pilih akun layanan untuk integrasi. Anda dapat mengubah atau memperbarui detail akun layanan integrasi kapan saja dari panel Ringkasan integrasiinfo di toolbar integrasi.
Klik Buat. Integrasi yang baru dibuat akan terbuka di editor integrasi.
Di menu navigasi editor integrasi, klik Tugas untuk melihat daftar tugas dan konektor yang tersedia.
Klik dan tempatkan elemen tugas Timer di editor integrasi.
Klik elemen tugas Timer di desainer untuk melihat panel konfigurasi tugas
Timer.
Konfigurasikan kolom yang tersisa menggunakan Properti konfigurasi untuk tugas. Misalnya, jika Anda menetapkan Timeout after ke 180 dan Time unit ke Seconds, eksekusi akan dijeda selama 3 menit sebelum dilanjutkan secara otomatis.
Perubahan pada properti akan disimpan secara otomatis.
Properti konfigurasi
Tabel berikut menjelaskan properti konfigurasi tugas Timer.
Properti
Data type
Deskripsi
Timeout after
Bilangan bulat
Waktu hingga eksekusi integrasi harus dijeda. Integrasi
akan otomatis melanjutkan eksekusi tugas downstream berikutnya setelah batas waktu
berakhir.
Nilai default: 120 detik (2 menit).
Batas waktu maksimum yang diizinkan: 44.640 menit (31 hari).
Time unit
Detik, Menit, Jam, Hari
Satuan waktu untuk properti Waktu tunggu setelah.
Strategi penanganan error
Strategi penanganan error untuk tugas menentukan tindakan yang akan diambil jika tugas gagal karena error sementara. Untuk mengetahui informasi tentang cara menggunakan strategi penanganan error, dan untuk mengetahui berbagai jenis strategi penanganan error, lihat Strategi penanganan error.
Kuota dan batas
Untuk mengetahui informasi tentang kuota dan batas, lihat Kuota dan batas.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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)."]]