You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/06/18 15:19:27 UTC

[GitHub] [airflow] mik-laj opened a new issue #9383: Test StackdriverTaskHandler on latest Airflow 1.10

mik-laj opened a new issue #9383:
URL: https://github.com/apache/airflow/issues/9383


   Hello,
   
   I received signals that this handler is not working properly on the latest version of Airflow from the 1.10 series. We should verify it.
   
   Cheers


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj closed issue #9383: Test StackdriverTaskHandler on latest Airflow 1.10

Posted by GitBox <gi...@apache.org>.
mik-laj closed issue #9383:
URL: https://github.com/apache/airflow/issues/9383


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on issue #9383: Test StackdriverTaskHandler on latest Airflow 1.10

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #9383:
URL: https://github.com/apache/airflow/issues/9383#issuecomment-703425552


   Done. It works with ``apache-airflow-backport-providers-google==2020.10.5rc1``, but we need to manually configure the task handler. To do this, create the `~/airflow/config/log_config.py` file with the following content.
   ```python
   from copy import deepcopy
   from airflow.config_templates.airflow_local_settings import DEFAULT_LOGGING_CONFIG
   
   from pprint import pprint
   
   LOGGING_CONFIG = deepcopy(DEFAULT_LOGGING_CONFIG)
   
   LOGGING_CONFIG['handlers']['task'] = {
       'class': 'stackdriver.StackdriverTaskHandler',
       'formatter': 'airflow',
       'name': 'aairflow-tasks',
       'gcp_key_path': '/key/path.json'
   }
   
   ```
   Details are available in the handler’s documentation - [https://airflow.readthedocs.io/en/latest/_api/airflow/providers/google/cloud/log/stackdriver_task_handler/index.html#airflow.providers.google.cloud.log.stackdriver_task_handler.StackdriverTaskHandler](airflow.providers.google.cloud.log.stackdriver_task_handler.StackdriverTaskHandler).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org