| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This sample shows how to execute a Cloud Workflow and wait for the workflow execution results using the Python client libraries.
Deploy the workflow, myFirstWorkflow:
Install pip and virtualenv if you do not already have them.
You may want to refer to the Python Development Environment Setup Guide for Google Cloud Platform for instructions.
Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
virtualenv env
source env/bin/activateInstall the dependencies needed to run the samples.
pip install -r requirements.txtStart the application, setting your project name in an environment variable, GOOGLE_CLOUD_PROJECT:
export GOOGLE_CLOUD_PROJECT=your-project-id
python main.pyObserve the results:
In stdout, you should see a JSON response from your workflow like the following:
["Wednesday","Wednesday Night Wars","Wednesday 13","Wednesday Addams","Wednesday Campanella","Wednesdayite","Wednesday Martin","Wednesday Campanella discography","Wednesday Night Hockey (American TV program)","Wednesday Morning, 3 A.M."]| Back | FazBrowse Home | New Git URL |