[jira] [Commented] (AIRFLOW-4019) AWS Athena Sensor's object has no attribute 'mode'

2019-03-20 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/AIRFLOW-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16797237#comment-16797237
 ] 

ASF subversion and git services commented on AIRFLOW-4019:
--

Commit 0fb32166825d630cc5e87b39588e280737567448 in airflow's branch 
refs/heads/v1-10-stable from Mariko Wakabayashi
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=0fb3216 ]

[AIRFLOW-4019] Fix AWS Athena Sensor object has no attribute 'mode' (#4844)



> AWS Athena Sensor's object has no attribute 'mode'
> --
>
> Key: AIRFLOW-4019
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4019
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: contrib
>Affects Versions: 1.10.2
>Reporter: Mariko Wakabayashi
>Assignee: Mariko Wakabayashi
>Priority: Major
> Fix For: 1.10.3
>
>
> *Bug*
> {code:java}
> [2019-03-05 18:52:32,317] {models.py:1788} ERROR - 'AthenaSensor' object has 
> no attribute 'mode'
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.6/site-packages/airflow/models.py", line 1657, 
> in _run_raw_task
> result = task_copy.execute(context=context)
>   File 
> "/usr/local/lib/python3.6/site-packages/airflow/sensors/base_sensor_operator.py",
>  line 92, in execute
> if self.reschedule:
>   File 
> "/usr/local/lib/python3.6/site-packages/airflow/sensors/base_sensor_operator.py",
>  line 123, in reschedule
> return self.mode == 'reschedule'{code}
> *Fix*
>  * AWS Athena Sensor's first argument to super() is incorrect
>  * 
> [https://github.com/apache/airflow/blob/master/airflow/contrib/sensors/aws_athena_sensor.py#L59]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AIRFLOW-4019) AWS Athena Sensor's object has no attribute 'mode'

2019-03-05 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/AIRFLOW-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16784971#comment-16784971
 ] 

ASF GitHub Bot commented on AIRFLOW-4019:
-

feng-tao commented on pull request #4844: [AIRFLOW-4019] Fix AWS Athena Sensor 
object has no attribute 'mode'
URL: https://github.com/apache/airflow/pull/4844
 
 
   
 

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:
us...@infra.apache.org


> AWS Athena Sensor's object has no attribute 'mode'
> --
>
> Key: AIRFLOW-4019
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4019
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: contrib
>Affects Versions: 1.10.2
>Reporter: Mariko Wakabayashi
>Assignee: Mariko Wakabayashi
>Priority: Major
> Fix For: 1.10.3
>
>
> *Bug*
> {code:java}
> [2019-03-05 18:52:32,317] {models.py:1788} ERROR - 'AthenaSensor' object has 
> no attribute 'mode'
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.6/site-packages/airflow/models.py", line 1657, 
> in _run_raw_task
> result = task_copy.execute(context=context)
>   File 
> "/usr/local/lib/python3.6/site-packages/airflow/sensors/base_sensor_operator.py",
>  line 92, in execute
> if self.reschedule:
>   File 
> "/usr/local/lib/python3.6/site-packages/airflow/sensors/base_sensor_operator.py",
>  line 123, in reschedule
> return self.mode == 'reschedule'{code}
> *Fix*
>  * AWS Athena Sensor's first argument to super() is incorrect
>  * 
> [https://github.com/apache/airflow/blob/master/airflow/contrib/sensors/aws_athena_sensor.py#L59]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AIRFLOW-4019) AWS Athena Sensor's object has no attribute 'mode'

2019-03-05 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/AIRFLOW-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16784972#comment-16784972
 ] 

ASF subversion and git services commented on AIRFLOW-4019:
--

Commit 3bb0493106161506459e18632042c81f10f19946 in airflow's branch 
refs/heads/master from Mariko Wakabayashi
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=3bb0493 ]

[AIRFLOW-4019] Fix AWS Athena Sensor object has no attribute 'mode' (#4844)



> AWS Athena Sensor's object has no attribute 'mode'
> --
>
> Key: AIRFLOW-4019
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4019
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: contrib
>Affects Versions: 1.10.2
>Reporter: Mariko Wakabayashi
>Assignee: Mariko Wakabayashi
>Priority: Major
> Fix For: 1.10.3
>
>
> *Bug*
> {code:java}
> [2019-03-05 18:52:32,317] {models.py:1788} ERROR - 'AthenaSensor' object has 
> no attribute 'mode'
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.6/site-packages/airflow/models.py", line 1657, 
> in _run_raw_task
> result = task_copy.execute(context=context)
>   File 
> "/usr/local/lib/python3.6/site-packages/airflow/sensors/base_sensor_operator.py",
>  line 92, in execute
> if self.reschedule:
>   File 
> "/usr/local/lib/python3.6/site-packages/airflow/sensors/base_sensor_operator.py",
>  line 123, in reschedule
> return self.mode == 'reschedule'{code}
> *Fix*
>  * AWS Athena Sensor's first argument to super() is incorrect
>  * 
> [https://github.com/apache/airflow/blob/master/airflow/contrib/sensors/aws_athena_sensor.py#L59]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (AIRFLOW-4019) AWS Athena Sensor's object has no attribute 'mode'

2019-03-05 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/AIRFLOW-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16784809#comment-16784809
 ] 

ASF GitHub Bot commented on AIRFLOW-4019:
-

mwakaba2 commented on pull request #4844: [AIRFLOW-4019] Fix AWS Athena Sensor 
object has no attribute 'mode'
URL: https://github.com/apache/airflow/pull/4844
 
 
   
   ### Jira
   
   - [x] My PR addresses this jira ticket 
[AIRFLOW-4019](https://issues.apache.org/jira/browse/AIRFLOW-4019) . 
   ### Description
   
   - [x] Here are some details about my PR, including screenshots of any UI 
changes:
   
   When airflow runs the AthenaSensor, I get the following error. The following 
update to the first argument of `super()` would fix this.
   
   ```
   Traceback (most recent call last):
 File "/usr/local/lib/python3.6/site-packages/airflow/models.py", line 
1657, in _run_raw_task
   result = task_copy.execute(context=context)
 File 
"/usr/local/lib/python3.6/site-packages/airflow/sensors/base_sensor_operator.py",
 line 92, in execute
   if self.reschedule:
 File 
"/usr/local/lib/python3.6/site-packages/airflow/sensors/base_sensor_operator.py",
 line 123, in reschedule
   return self.mode == 'reschedule'
   AttributeError: 'AthenaSensor' object has no attribute 'mode'
   ```
   
   ### Tests
   
   - [x] My PR adds the following unit tests __OR__ does not need testing for 
this extremely good reason:
   
   ### Commits
   
   - [x] My commits all reference Jira issues in their subject lines, and I 
have squashed multiple commits if they address the same issue. In addition, my 
commits follow the guidelines from "[How to write a good git commit 
message](http://chris.beams.io/posts/git-commit/)":
 1. Subject is separated from body by a blank line
 1. Subject is limited to 50 characters (not including Jira issue reference)
 1. Subject does not end with a period
 1. Subject uses the imperative mood ("add", not "adding")
 1. Body wraps at 72 characters
 1. Body explains "what" and "why", not "how"
   
   ### Documentation
   
   - [ ] In case of new functionality, my PR adds documentation that describes 
how to use it.
 - When adding new operators/hooks/sensors, the autoclass documentation 
generation needs to be added.
 - All the public functions and the classes in the PR contain docstrings 
that explain what it does
   
   not applicable. 
   
   ### Code Quality
   
   - [x] Passes `flake8`
   
 

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:
us...@infra.apache.org


> AWS Athena Sensor's object has no attribute 'mode'
> --
>
> Key: AIRFLOW-4019
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4019
> Project: Apache Airflow
>  Issue Type: Bug
>  Components: contrib
>Affects Versions: 1.10.2
>Reporter: Mariko Wakabayashi
>Assignee: Mariko Wakabayashi
>Priority: Major
>
> *Bug*
> {code:java}
> [2019-03-05 18:52:32,317] {models.py:1788} ERROR - 'AthenaSensor' object has 
> no attribute 'mode'
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.6/site-packages/airflow/models.py", line 1657, 
> in _run_raw_task
> result = task_copy.execute(context=context)
>   File 
> "/usr/local/lib/python3.6/site-packages/airflow/sensors/base_sensor_operator.py",
>  line 92, in execute
> if self.reschedule:
>   File 
> "/usr/local/lib/python3.6/site-packages/airflow/sensors/base_sensor_operator.py",
>  line 123, in reschedule
> return self.mode == 'reschedule'{code}
> *Fix*
>  * AWS Athena Sensor's first argument to super() is incorrect
>  * 
> [https://github.com/apache/airflow/blob/master/airflow/contrib/sensors/aws_athena_sensor.py#L59]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)