Update task sample comments (#2156) · code4ward/python-docs-samples@faa2027 · GitHub
Skip to content

Commit faa2027

Browse files
authored
Update task sample comments (GoogleCloudPlatform#2156)
* Update task comments * Update readme * Update queue name
1 parent 8a64381 commit faa2027

5 files changed

Lines changed: 20 additions & 32 deletions

File tree

tasks/README.md

Lines changed: 12 additions & 24 deletions

tasks/create_http_task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def create_http_task(project,
3535

3636
# TODO(developer): Uncomment these lines and replace with your values.
3737
# project = 'my-project-id'
38-
# queue = 'my-appengine-queue'
38+
# queue = 'my-queue'
3939
# location = 'us-central1'
40-
# url = 'https://<project-id>.appspot.com/example_task_handler'
40+
# url = 'https://example.com/task_handler'
4141
# payload = 'hello'
4242

4343
# Construct the fully qualified queue name.

tasks/create_http_task_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

1919
TEST_PROJECT_ID = os.getenv('GCLOUD_PROJECT')
2020
TEST_LOCATION = os.getenv('TEST_QUEUE_LOCATION', 'us-central1')
21-
TEST_QUEUE_NAME = os.getenv('TEST_QUEUE_NAME', 'my-appengine-queue')
21+
TEST_QUEUE_NAME = os.getenv('TEST_QUEUE_NAME', 'my-queue')
2222

2323

2424
def test_create_http_task():
25-
url = 'https://example.appspot.com/example_task_handler'
25+
url = 'https://example.com/task_handler'
2626
result = create_http_task.create_http_task(
2727
TEST_PROJECT_ID, TEST_QUEUE_NAME, TEST_LOCATION, url)
2828
assert TEST_QUEUE_NAME in result.name

tasks/create_http_task_with_token.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def create_http_task(project,
3535

3636
# TODO(developer): Uncomment these lines and replace with your values.
3737
# project = 'my-project-id'
38-
# queue = 'my-appengine-queue'
38+
# queue = 'my-queue'
3939
# location = 'us-central1'
40-
# url = 'https://example.com/example_task_handler'
40+
# url = 'https://example.com/task_handler'
4141
# payload = 'hello'
4242

4343
# Construct the fully qualified queue name.

tasks/create_http_task_with_token_test.py

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)