所有 Cloud Tasks 代码示例

使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。

This page contains code samples for Cloud Tasks. To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.

App Engine task handler

App Engine app with endpoint to process tasks.

View in documentation

App Engine task handler

App Engine task handler for migrating from taskqueues example.

View in documentation

Cloud Function task handler

Using Cloud Tasks to trigger Cloud Functions.

Create a queue

Creates a queue.

Create an App Engine task

Creates an App Engine task.

Create App Engine tasks

Creates tasks to send to an App Engine app.

View in documentation

Create App Engine tasks

Creates App Engine tasks for migrating from taskqueues example.

View in documentation

Create HTTP tasks

Creates tasks to send to a Cloud Run, Cloud Function, or external URL.

View in documentation

Create HTTP tasks

Creates HTTP tasks for tutorial: Using Cloud Tasks to trigger Cloud Functions.

Create HTTP tasks with authentication

Creates tasks with OIDC token to send to a Cloud Run, Cloud Function, or external URL.

Create tasks from App Engine app

App Engine app for tutorial: Using Cloud Tasks to trigger Cloud Functions.

Delete a queue

Deletes a queue.