Skip to content

Commit 35ae7fa

Browse files
cojencodandhlee
authored andcommitted
fix region tags
1 parent be1fb22 commit 35ae7fa

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

scheduler/snippets/app.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# [START cloud_scheduler_python_yaml]
15+
# [START cloudscheduler_python_yaml]
1616
runtime: python37
1717
service: my-service
18-
# [END cloud_scheduler_python_yaml]
18+
# [END cloudscheduler_python_yaml]

scheduler/snippets/create_job.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
def create_scheduler_job(project_id, location_id, service_id):
1717
"""Create a job with an App Engine target via the Cloud Scheduler API"""
18-
# [START cloud_scheduler_create_job]
18+
# [START cloudscheduler_create_job]
1919
from google.cloud import scheduler
2020

2121
# Create a client.
@@ -45,13 +45,13 @@ def create_scheduler_job(project_id, location_id, service_id):
4545
response = client.create_job(request={"parent": parent, "job": job})
4646

4747
print("Created job: {}".format(response.name))
48-
# [END cloud_scheduler_create_job]
48+
# [END cloudscheduler_create_job]
4949
return response
5050

5151

5252
def delete_scheduler_job(project_id, location_id, job_id):
5353
"""Delete a job via the Cloud Scheduler API"""
54-
# [START cloud_scheduler_delete_job]
54+
# [START cloudscheduler_delete_job]
5555
from google.api_core.exceptions import GoogleAPICallError
5656
from google.cloud import scheduler
5757

@@ -72,4 +72,4 @@ def delete_scheduler_job(project_id, location_id, job_id):
7272
print("Job deleted.")
7373
except GoogleAPICallError as e:
7474
print("Error: %s" % e)
75-
# [END cloud_scheduler_delete_job]
75+
# [END cloudscheduler_delete_job]

scheduler/snippets/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
"""App Engine app to serve as an endpoint for Cloud Scheduler samples."""
1616

17-
# [START cloud_scheduler_app]
17+
# [START cloudscheduler_app]
1818
from flask import Flask, request
1919

2020
app = Flask(__name__)
@@ -29,7 +29,7 @@ def example_task_handler():
2929
return "Printed job payload: {}".format(payload)
3030

3131

32-
# [END cloud_scheduler_app]
32+
# [END cloudscheduler_app]
3333

3434

3535
@app.route("/")

0 commit comments

Comments
 (0)