Skip to content

Commit e252e8f

Browse files
authored
Merge branch 'main' into functions-billing-tests
2 parents 763289d + ccfae65 commit e252e8f

File tree

36 files changed

+251
-150
lines changed

36 files changed

+251
-150
lines changed

appengine/flexible/scipy/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ Flask==2.0.2
22
gunicorn==20.1.0
33
imageio==2.14.0
44
numpy==1.21.4
5-
pillow==9.0.0
5+
pillow==9.0.1
66
scipy==1.8.0; python_version > "3.7"
77
scipy==1.7.3; python_version <= "3.7"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Flask==2.0.2
22
gunicorn==20.1.0
3-
twilio==7.5.1
3+
twilio==7.6.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sendgrid==6.9.5
1+
sendgrid==6.9.6

composer/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Cloud Composer Samples
2+
3+
All code in this directory is samples or tooling related to [Cloud Composer](https://cloud.google.com/composer).
4+
5+
* [`airflow_1_samples`](/composer/airflow_1_samples) - contains DAGs compatible with Airflow 1 Composer environments. More usage examples can be found in the [Composer documentation](https://cloud.google.com/composer/docs) and [standalone samples](https://cloud.google.com/composer/docs/samples)
6+
* [`blog`](/composer/blog) - contains sample code used in blog posts pertaining to Cloud Composer
7+
* [`cicd_sample`](/composer/cicd_sample) - contains a [sample for using Cloud Build to test and sync DAGs](https://cloud.google.com/composer/docs/dag-cicd-integration-guide)
8+
* [`dag_test_utils`](/composer/dag_test_utils) - is a package used internally by repo maintainers
9+
* [`functions`](/composer/functions) - contains samples that use Cloud Functions to trigger DAGs
10+
* [`rest`](/composer/rest) - contains samples used in the documentation that interact with the Cloud Composer REST API
11+
* [`tools`](/composer/tools) - contains utilities for Cloud Composer users to manage their environments. Each utility has a corresponding README.
12+
* [`workflows`](/composer/workflows) - contains DAGs compatible with Airflow 2 Composer environments. More usage examples can be found in the [Composer documentation](https://cloud.google.com/composer/docs) and [standalone samples](https://cloud.google.com/composer/docs/samples)

composer/airflow_1_samples/dataflowtemplateoperator_tutorial.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
* project_id - Google Cloud Project ID to use for the Cloud Dataflow cluster.
2424
* gce_zone - Google Compute Engine zone where Cloud Dataflow cluster should be
2525
created.
26-
* gce_region - Google Compute Engine region where Cloud Dataflow cluster should be
2726
created.
2827
Learn more about the difference between the two here:
2928
https://cloud.google.com/compute/docs/regions-zones
@@ -40,16 +39,13 @@
4039
bucket_path = models.Variable.get("bucket_path")
4140
project_id = models.Variable.get("project_id")
4241
gce_zone = models.Variable.get("gce_zone")
43-
gce_region = models.Variable.get("gce_region")
4442

4543

4644
default_args = {
4745
# Tell airflow to start one day ago, so that it runs as soon as you upload it
4846
"start_date": days_ago(1),
4947
"dataflow_default_options": {
5048
"project": project_id,
51-
# Set to your region
52-
"region": gce_region,
5349
# Set to your zone
5450
"zone": gce_zone,
5551
# This is a subfolder for storing temporary files, like the staged pipeline job.

composer/airflow_1_samples/dataflowtemplateoperator_tutorial_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ def set_variables(airflow_database):
2323
models.Variable.set("bucket_path", "gs://example_bucket")
2424
models.Variable.set("project_id", "example-project")
2525
models.Variable.set("gce_zone", "us-central1-f")
26-
models.Variable.set("gce_region", "us-central1-f")
2726
yield
2827
models.Variable.delete('bucket_path')
2928
models.Variable.delete('project_id')
3029
models.Variable.delete('gce_zone')
31-
models.Variable.delete('gce_region')
3230

3331

3432
def test_dag_import():
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pytest==6.2.3
22
requests==2.27.1
33
google-api-core==2.5.0
4-
google-resumable-media==2.1.0
4+
google-resumable-media==2.2.1

composer/tools/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Composer Tools
22

3-
[Composer DB Migration for Airflow 1.10.14/15 -> Airflow 2](composer_db_transfer.md)
3+
* [Composer DB Migration for Airflow 1.10.14/15 -> Airflow 2](composer_db_transfer.md)
4+
* [Composer DAGs Pausing/Unpausing script](composer_dags.md)

composer/workflows/README.rst

Lines changed: 0 additions & 63 deletions
This file was deleted.

composer/workflows/README.rst.in

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)