Skip to content
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

[AIRFLOW-3078] Basic operators for Google Compute Engine #4022

Merged
merged 1 commit into from
Oct 10, 2018

Commits on Oct 8, 2018

  1. [AIRFLOW-3078] Basic operators for Google Compute Engine

    Add GceInstanceStartOperator, GceInstanceStopOperator and GceSetMachineTypeOperator.
    
    Each operator includes:
    - core logic
    - input params validation
    - unit tests
    - presence in the example DAG
    - docstrings
    - How-to and Integration documentation
    
    Additionally, in GceHook error checking if response is 200 OK was added:
    
    Some types of errors are only visible in the response's "error" field
    and the overall HTTP response is 200 OK.
    
    That is why apart from checking if status is "done" we also check
    if "error" is empty, and if not an exception is raised with error
    message extracted from the "error" field of the response.
    
    In this commit we also separated out Body Field Validator to
    separate module in tools - this way it can be reused between
    various GCP operators, it has proven to be usable in at least
    two of them now.
    
    Co-authored-by: sprzedwojski <szymon.przedwojski@polidea.com>
    Co-authored-by: potiuk <jarek.potiuk@polidea.com>
    2 people authored and sprzedwojski committed Oct 8, 2018
    Configuration menu
    Copy the full SHA
    7005dd7 View commit details
    Browse the repository at this point in the history