Git Product home page Git Product logo

airflow-extended-api-plugin's Introduction

Hi ๐Ÿ‘‹, I'm Eric Cao

typing-svg

โ€ƒโ€ƒ โ€ƒโ€ƒ โ€ƒโ€ƒ
  • ๐ŸŒฑ Iโ€™m currently learning about big data, and still growing.

  • ๐Ÿ“ซ How to reach me [email protected]

airflow-extended-api-plugin's People

Contributors

caoergou avatar huymq1710 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

airflow-extended-api-plugin's Issues

For backfilling: API will get 504 Gateway Time-out due to taking time to finish

The 504 Gateway Timeout error you're seeing is due to the server not getting a timely response from the Airflow backfill command. This is because the backfill operation takes time and doesn't instantly return a response.

Instead of waiting for the backfill operation to complete, I think we can return a response immediately to the client and let the operation continue in the background.

    def _backfill(self):
        log.info("Extended API backfill called")

        body = request.get_json()
        try:
            command_list, username = backfillDAGRunSchema.load(body)
        except ValidationError as err:
            raise BadRequest(detail=str(err.messages))

        # For backfilling: API will get 504 Gateway Time-out due to taking time to finish
        # output = execute_cli_command(command_list, username)
        # result = commandExecutionResult.load(output)

        thread = threading.Thread(target=execute_cli_command, args=(command_list, username))
        thread.start()

        return {"message": "Backfill operation started"}, 202

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.