-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove tasks samples * Delete cloudtasks job config
- Loading branch information
Ace Nassri
authored
Aug 3, 2018
1 parent
3bb14ef
commit ccdd400
Showing
5 changed files
with
4 additions
and
348 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,5 @@ | ||
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/> | ||
Samples for the [Google Cloud Tasks API Node.js Client][client] | ||
have moved to [github.com/googleapis/nodejs-tasks/tree/master/samples/][samples]. | ||
|
||
# Google Cloud Tasks API Node.js Samples | ||
|
||
The [Cloud Tasks API](https://cloud.google.com/cloud-tasks/docs) enables | ||
developers to manage the execution of large numbers of distributed requests. | ||
|
||
## Table of Contents | ||
|
||
* [Setup](#setup) | ||
* [Samples](#samples) | ||
* [Tasks](#tasks) | ||
* [Running the tests](#running-the-tests) | ||
|
||
## Setup | ||
|
||
1. Read [Prerequisites][prereq] and [How to run a sample][run] first. | ||
1. Install dependencies: | ||
|
||
With **npm**: | ||
|
||
npm install | ||
|
||
With **yarn**: | ||
|
||
yarn install | ||
|
||
[prereq]: ../README.md#prerequisites | ||
[run]: ../README.md#how-to-run-a-sample | ||
|
||
## Samples | ||
|
||
### Tasks | ||
|
||
View the [documentation][tasks_0_docs] or the [source code][tasks_0_code]. | ||
|
||
__Usage:__ `node tasks.js --help` | ||
|
||
``` | ||
tasks.js <command> | ||
Commands: | ||
tasks.js create <project> <location> <queue> Create a task. | ||
tasks.js pull <project> <location> <queue> Pull a task. | ||
tasks.js acknowledge <task> Acknowledge a task. | ||
Options: | ||
--version Show version number [boolean] | ||
--help Show help [boolean] | ||
Examples: | ||
node tasks.js create my-project-id us-central1 my-queue | ||
node tasks.js pull my-project-id us-central1 my-queue | ||
node tasks.js acknowledge | ||
'{"name":"projects/my-project-id/locations/us-central1/queues/my-queue/tasks/1234","scheduleTime":"2017-11-01T22:27: | ||
53.628279Z"}' | ||
For more information, see https://cloud.google.com/cloud-tasks/docs | ||
``` | ||
|
||
[tasks_0_docs]: https://cloud.google.com/cloud-tasks/docs | ||
[tasks_0_code]: tasks.js | ||
|
||
## Running the tests | ||
|
||
1. Set the **GCLOUD_PROJECT** and **GOOGLE_APPLICATION_CREDENTIALS** environment variables. | ||
|
||
1. Run the tests: | ||
|
||
With **npm**: | ||
|
||
npm test | ||
|
||
With **yarn**: | ||
|
||
yarn test | ||
[client]: https://github.com/googleapis/nodejs-tasks | ||
[samples]: https://github.com/googleapis/nodejs-tasks/tree/master/samples |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.