File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Al code in the snippets directory demonstrate how to invoke Cloud Tasks from PHP
26
26
5. Create a Queue
27
27
To create a queue using the Cloud SDK, use the following gcloud command:
28
28
` ` ` sh
29
- gcloud beta tasks queues create-app-engine-queue my-appengine-queue
29
+ gcloud beta tasks queues create < QUEUE_NAME >
30
30
` ` `
31
31
32
32
# # Using an HTTP Target
@@ -39,13 +39,13 @@ Al code in the snippets directory demonstrate how to invoke Cloud Tasks from PHP
39
39
40
40
where:
41
41
* ` PROJECT_ID` is your Google Cloud Project id.
42
- * ` QUEUE_ID` is your queue id (ie my-appengine-queue).
42
+ * ` QUEUE_ID` is your queue id.
43
43
Queue IDs already created can be listed with ` gcloud alpha tasks queues list` .
44
44
* ` LOCATION_ID` is the location of your queue.
45
45
Determine the location ID, which can be discovered with
46
- ` gcloud beta tasks queues describe $QUEUE_ID ` , with the location embedded in
46
+ ` gcloud beta tasks queues describe < QUEUE_NAME > ` , with the location embedded in
47
47
the " name" value (for instance, if the name is
48
- " projects/my-project/locations/us-central1/queues/my-pull- queue" , then the
48
+ " projects/my-project/locations/us-central1/queues/my-queue" , then the
49
49
location is " us-central1" ).
50
50
* ` URL` is the full URL to your target endpoint.
51
51
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public function testCreateHttpTask()
35
35
$ output = $ this ->runSnippet ('create_http_task ' , [
36
36
$ location ,
37
37
$ queue ,
38
- 'http://example.com ' ,
38
+ 'http://example.com/taskhandler ' ,
39
39
'Task Details ' ,
40
40
]);
41
41
$ taskNamePrefix = sprintf ('projects/%s/locations/%s/queues/%s/tasks/ ' ,
You can’t perform that action at this time.
0 commit comments