Re: API spec questions

2020-05-11 Thread Jarek Potiuk
While I understand the benefits of the "clean" "REST" API where resources are identified by a nice hierarchy, I do not think it is necessary to follow it for this kind of queries.I think the "resources" based approach indeed breaks down when you want to make more complex queries and want to do it

Re: API spec questions

2020-05-11 Thread QP Hou
I would recommend option III. IMHO, hierarchy based endpoints are for CURD operations on a single entity. The flat endpoint, like /taskinstance, is for read-only multi-facet search queries. For example: * to create a resource Foo: "POST /api/parent/{parent_id}/foo" * to update a resource Foo: "P

RE: Setting to add choice of schedule at end or schedule at start of interval

2020-05-11 Thread Shaw, Damian P.
I strongly agree with reducing Airflows complexity and the plan to serialize DAGs by default makes a lot of sense. So wouldn't it make sense to also serialize the schedule of a DAG? e.g. Provide a table of execution dates that the scheduler can keep upcoming ones cached and periodically check

Re: Setting to add choice of schedule at end or schedule at start of interval

2020-05-11 Thread Dan Davydov
I strongly agree with Ash, I also think we should strive to decrease the complexity of core Airflow components and not offer customization/extensibility especially in the form of plugins where it is not needed to make Airflow more robust and easier to reason about (less testing configuration). I th

Re: CeleryExecutor and Redis

2020-05-11 Thread Andreas Balke
> 2) Many times, especially once a DAG is running, in the UI I see the warning > "The scheduler does not appear to be running.” The other thing that was an issue: `SCHEDULER_RUNS` in the environment was set to some value `> -1`. This was causing "The scheduler does not appear to be running.” wa

What's coming in Airflow 2.0 =- this Wednesday at NYC Online Meetup

2020-05-11 Thread Jarek Potiuk
Hello, Just to remind everyone: we are talking about what's coming in Apache Airflow 2.0 this Wednesday at the online NYC Meetup: https://www.meetup.com/NYC-Apache-Airflow-Meetup/events/270483933/. This will be a joint presentation by Ash, Kaxil, Tomek, Daniel, Kamil, and myself. This Wednesday:

Re: API spec questions

2020-05-11 Thread Kamil Breguła
Hello, I apologize for my very negative behavior. I misunderstood the rules. I updated the specification based on the discussion. I hope that now I have not missed any suggestions that I had to make. I tried to make every change in a separate commit, so you can review the changes one by one. Here

Re: Setting to add choice of schedule at end or schedule at start of interval

2020-05-11 Thread Ash Berlin-Taylor
> Ash, you had mentioned something about some plans that were in conflict > with the above hack could you maybe share a thought or two about what > you were thinking? > The main thing here is around scheduler HA, and I want the scheduler to be able to make all scheduling decisions without nee