jonson.ncube
jonson.ncube

Reputation: 234

Google Cloud: Where to add a task to the Cloud Tasks queue?

I am stuck here: https://cloud.google.com/tasks/docs/quickstart?hl=ca-ES#add_a_task_to_the_cloud_tasks_queue

Where to put and export the environment variables (PROJECT_ID, LOCATION_ID and QUEUE_ID), because the documentation says I should put them in the code in my sample app but I don't know in which file exactly. I am using NodeJS

export PROJECT_ID=PROJECT_ID // The project ID from above
export LOCATION_ID=LOCATION_ID // The region in which your queue is running
export QUEUE_ID=my-queue // The queue you created above

Upvotes: 0

Views: 249

Answers (1)

Daniel Ocando
Daniel Ocando

Reputation: 3764

You'll simply need to set the environment variables depending on your OS.

The export command is meant to be run in a Terminal if using in UNIX bases systems (Linux, MacOS).

If you are using Windows you'll need to make a few more clicks.

The following blog post goes through all the details for all major OSes.

Upvotes: 1

Related Questions