Skip to content

Commit 60b7e03

Browse files
authored
Update PullQueue.java
Updated comment markers
1 parent db5887d commit 60b7e03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cloud-tasks/src/main/java/com.example.cloudtasks/PullQueue.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private static CloudTasks createAuthorizedClient() throws IOException {
6565
.build();
6666
}
6767

68-
# [START cloud_tasks_create_task]
68+
// [START cloud_tasks_create_task]
6969
/**
7070
* Create a task for a given queue with a given payload.
7171
*/
@@ -97,10 +97,10 @@ private static Task createTask(
9797
System.out.println(String.format("Created task %s",task.getName()));
9898
return result;
9999
}
100-
# [END cloud_tasks_create_task]
100+
// [END cloud_tasks_create_task]
101101

102102

103-
# [START cloud_tasks_lease_and_acknowledge_task]
103+
// [START cloud_tasks_lease_and_acknowledge_task]
104104
/**
105105
* Pull a single task from a given queue and lease it for 10 minutes.
106106
*/
@@ -148,7 +148,7 @@ private static void acknowledgeTask(Task task) throws IOException {
148148
.execute();
149149
System.out.println(String.format("Acknowledged task %s", task.getName()));
150150
}
151-
# [END cloud_tasks_lease_and_acknowledge_task]
151+
// [END cloud_tasks_lease_and_acknowledge_task]
152152

153153
public static void main(String[] args) throws Exception {
154154
ArgumentParser parser = ArgumentParsers.newFor("PullQueue").build()

0 commit comments

Comments
 (0)