HTTP Operator and sensor#103
HTTP Operator and sensor#103mistercrunch merged 4 commits intoapache:masterfrom gtoonstra:http_operator_sensor
Conversation
|
History for this here: |
airflow/operators/sensors.py
Outdated
There was a problem hiding this comment.
http_conn_id because of how you can set default_args at your DAGs level, conn_id would conflict for default settings
|
Should be complete now.
I'm happy if you take it as is and add what you need, if that makes it easier. |
|
Awesome! I think this is solid as far as I can tell. A few details:
Another thought (outside the scope of this PR) is around authentication. I read the |
|
If something is needed for authentication, let's identify how and what and create an issue for it. I did not run the process to create docs (never done that), please evaluate if that's necessary. The http_default connection here is google.com. Obviously that needs to be present for this to work. How do you document this, or do you create a default connection in the installer? If the sensor fails in the test, it will poll forever. Is there a max_retries so the test fail or succeed at some point (mostly useful for CI). |
|
Awesome. This is coming together nicely!
|
|
I added a timeout and initdb now creates a http_default connection for google.com . I ran the tests before and they errored when example_http_operator is in the example_dags, because the constructor is looking for it (when not supplied). The hive and other operators are not part of example dags, so they don't get imported and don't create that error. Maybe better to remove the example_http_operator or put it in a different folder. I tried to get the sensor to error by changing the response_check to False, but that didn't work. The output gets eaten up too, so I can't see what's happening. The test always appears to succeed for the sensor, this could an issue with the testing platform (does it check for the return value for a sensor?). |
|
I fetched your branch to run some tests and ended changing things around a bit. The main thing was the missing I think everything else look fine at this point, if you want to keep iterating you can bring this commit to your PR, or I can just merge my local branch as is. I think you get "credited" for your commits in any case. |
|
Please go ahead with the merge from your local branch and then close this PR. Anything else that's needed, let's create a separate issue and pr for that. |
[AIRFLOW-961] run onkill when SIGTERMed
Fix typo: and → an

New, clean pull request for issue #92 , not riddled with rebase artifacts.