-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Data orchestration blog sample #5686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data orchestration blog sample #5686
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
aee35da
to
82c7df7
Compare
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
82c7df7
to
4e514ad
Compare
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
4e514ad
to
82c7df7
Compare
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
82c7df7
to
29da218
Compare
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
1 similar comment
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
e0914db
to
0f2b96b
Compare
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
0f2b96b
to
a866173
Compare
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
a866173
to
732a6e9
Compare
Fixed GPG signing of old commits |
No region tags are edited in this PR.This comment is generated by snippet-bot.
|
Signed-off-by: rachael-ds <deaconsmith@google.com>
Signed-off-by: rachael-ds <deaconsmith@google.com>
@@ -0,0 +1,2 @@ | |||
pytest==6.2.1 | |||
git+https://github.com/GoogleCloudPlatform/python-docs-samples.git#egg=dag_test_utils&subdirectory=composer/dag_test_utils # DAG unit test utility |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git+https://github.com/GoogleCloudPlatform/python-docs-samples.git#egg=dag_test_utils&subdirectory=composer/dag_test_utils # DAG unit test utility | |
cloud-composer-dag-test-utils==0.0.1 # DAG unit test utility |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I released this as a real PyPI package now so no more ugly import needed 😄
composer/blog/gcp-tech-blog/data-orchestration-with-composer/requirements.txt
Outdated
Show resolved
Hide resolved
composer/blog/gcp-tech-blog/data-orchestration-with-composer/constraints.txt
Outdated
Show resolved
Hide resolved
...p-tech-blog/data-orchestration-with-composer/dags/data_orchestration_blog_sample_dag_test.py
Outdated
Show resolved
Hide resolved
...og/gcp-tech-blog/data-orchestration-with-composer/dags/data_orchestration_blog_sample_dag.py
Show resolved
Hide resolved
Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nits I've left are non-blocking - mostly just converting to f-strings. If you choose to accept the changes, just double check the dag runs in your environment before sending to publication
...og/gcp-tech-blog/data-orchestration-with-composer/dags/data_orchestration_blog_sample_dag.py
Outdated
Show resolved
Hide resolved
...og/gcp-tech-blog/data-orchestration-with-composer/dags/data_orchestration_blog_sample_dag.py
Outdated
Show resolved
Hide resolved
...og/gcp-tech-blog/data-orchestration-with-composer/dags/data_orchestration_blog_sample_dag.py
Outdated
Show resolved
Hide resolved
...og/gcp-tech-blog/data-orchestration-with-composer/dags/data_orchestration_blog_sample_dag.py
Outdated
Show resolved
Hide resolved
...og/gcp-tech-blog/data-orchestration-with-composer/dags/data_orchestration_blog_sample_dag.py
Outdated
Show resolved
Hide resolved
...og/gcp-tech-blog/data-orchestration-with-composer/dags/data_orchestration_blog_sample_dag.py
Outdated
Show resolved
Hide resolved
slack_msg = """ | ||
:red_circle: Task Failed. | ||
*Task*: {task} | ||
*Dag*: {dag} | ||
*Execution Time*: {exec_date} | ||
*Log Url*: {log_url} | ||
""".format( | ||
task=ti.task_id, | ||
dag=ti.dag_id, | ||
log_url=ti.log_url, | ||
exec_date=context.get('execution_date'), | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slack_msg = """ | |
:red_circle: Task Failed. | |
*Task*: {task} | |
*Dag*: {dag} | |
*Execution Time*: {exec_date} | |
*Log Url*: {log_url} | |
""".format( | |
task=ti.task_id, | |
dag=ti.dag_id, | |
log_url=ti.log_url, | |
exec_date=context.get('execution_date'), | |
) | |
slack_msg = f""" | |
:red_circle: Task Failed. | |
*Task*: {ti.task_id} | |
*Dag*: {ti.dag_id} | |
*Execution Time*: {context.get('execution_date')} | |
*Log Url*: {ti.log_url} | |
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done - thank you!
Looks good! Nit: some of the formatting is inconsistent, eg the mixing of single and double quotes in one dict. Could you run |
Adding new example Composer DAG sample to accompany my blog on data orchestration.
In draft state for review by @leahecole thanks!