from airflow import DAG
from airflow.operators import BashOperator
from datetime import datetime, timedelta
default_args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2018,5,5),
'email': ['air...@airflow.com'],
'email_on_failure': False,
'email_on_retry': False,
'retries': 1,
'retry_delay': timedelta(minutes=5),
# 'queue': 'bash_queue',
# 'pool': 'backfill',
# 'priority_weight': 10,
# 'schedule_interval': timedelta(1),
# 'end_date': datetime(2016, 1, 1),
}
dag = DAG('tutorial', default_args=default_args)
sample_command = """ echo Call no. {{ params.test_param }} """
for i in range(1, 100):
t1 = BashOperator(
task_id='print_date_'+str(i), bash_command=sample_command, params={'test_param': i}, dag=dag)
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/0de5ed78-faea-499e-85b4-8ab2a5d79bcc%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsub...@googlegroups.com.
To post to this group, send email to cloud-composer-discuss@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsubscri...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/0de5ed78-faea-499e-85b4-8ab2a5d79bcc%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsub...@googlegroups.com.
To post to this group, send email to cloud-composer-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/40ee638f-49ed-4251-adb9-1003c824b118%40googlegroups.com.
Hi Akshay,The webserver is hosted on a separate AppEngine machine that's not part of the Kubernetes Engine cluster. Until we have the scaling improvement in place for the AppEngine webserver, you can follow these instructions to launch a self-managed webserver in the Kubernetes Engine cluster itself: https://cloud.google.com/composer/docs/how-to/managing/deploy-webserverThere isn't a public issue tracker in the way an open source project might have one.It's hard to tell what's going wrong with the workers, but the "GKE Container" resource logs should show more low-level details than the "Cloud Composer Environment" resource logs and are worth checking out.You can install flower as a pypi package (https://cloud.google.com/composer/docs/how-to/using/installing-python-dependencies) and expose it via Kubernetes port forwarding. The steps to expose it are similar to the steps for deploying a self-managed webserver.best,Wilson
To post to this group, send email to cloud-composer-discuss@googlegroups.com.
Hi Akshay,
Actually, the self-managed webserver instructions are a tad overkill for a one-off Flower debugging session. Once you've installed flower as a PyPI package, you can follow the steps below on your local machine:
- Determine the Cloud Composer environment's Kubernetes Engine cluster
- Connect to the Kubernetes Engine cluster
- Select a worker (or scheduler) pod (looks like "airflow-worker-[-a-f0-9]+"): kubectl get pods
- Run flower on the selected worker pod: kubectl exec -it POD_NAME_FROM_ABOVE -c airflow-worker -- flower --broker=redis://airflow-redis-service:6379/0 --port=5555
- In a separate, parallel session, forward local port to flower: kubectl port-forward POD_NAME_FROM_ABOVE 5555
- Visit http://localhost:5555/ in your local browser.
best,Wilson
On Mon, May 7, 2018 at 2:27 PM, Wilson Lian <wwl...@google.com> wrote:
Hi Akshay,The webserver is hosted on a separate AppEngine machine that's not part of the Kubernetes Engine cluster. Until we have the scaling improvement in place for the AppEngine webserver, you can follow these instructions to launch a self-managed webserver in the Kubernetes Engine cluster itself: https://cloud.google.com/composer/docs/how-to/managing/deploy-webserverThere isn't a public issue tracker in the way an open source project might have one.It's hard to tell what's going wrong with the workers, but the "GKE Container" resource logs should show more low-level details than the "Cloud Composer Environment" resource logs and are worth checking out.You can install flower as a pypi package (https://cloud.google.com/composer/docs/how-to/using/installing-python-dependencies) and expose it via Kubernetes port forwarding. The steps to expose it are similar to the steps for deploying a self-managed webserver.best,Wilson
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsub...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/0de5ed78-faea-499e-85b4-8ab2a5d79bcc%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsub...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/0de5ed78-faea-499e-85b4-8ab2a5d79bcc%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/40ee638f-49ed-4251-adb9-1003c824b118%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/5d91e43f-dbec-4d19-a4bf-e49d91268e37%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsub...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/0de5ed78-faea-499e-85b4-8ab2a5d79bcc%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsub...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/40ee638f-49ed-4251-adb9-1003c824b118%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsub...@googlegroups.com.
To post to this group, send email to cloud-composer-discuss@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsubscri...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/0de5ed78-faea-499e-85b4-8ab2a5d79bcc%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsubscri...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/40ee638f-49ed-4251-adb9-1003c824b118%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsubscri...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/0de5ed78-faea-499e-85b4-8ab2a5d79bcc%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/40ee638f-49ed-4251-adb9-1003c824b118%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/5d91e43f-dbec-4d19-a4bf-e49d91268e37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To post to this group, send email to cloud-compo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/CACvDo1sZbh2K7KY4xJWqCZObND1gkRPvhT0TkPgqJVp7jwq_pA%40mail.gmail.com.