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-XXX] Add task lifecycle image to documentation #6762

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

kaverisharma09
Copy link
Contributor

Jarek Potiuk (potiuk@) and Kamil Breguła (mik-laj@) helped me to finalise this and Viktoria Nemkin (nemkin@) helped with using Github.

Make sure you have checked all steps below.

Jira

  • My PR addresses the following Airflow Jira issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"
    • https://issues.apache.org/jira/browse/AIRFLOW-XXX
    • In case you are fixing a typo in the documentation you can prepend your commit with [AIRFLOW-XXX], code changes always need a Jira issue.
    • In case you are proposing a fundamental code change, you need to create an Airflow Improvement Proposal (AIP).
    • In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

Description

  • Here are some details about my PR, including screenshots of any UI changes:

Screenshot 2019-12-09 at 14 59 54

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason: Change is only in documentation.

Commits

  • 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":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters (not including Jira issue reference)
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

Documentation

  • In case of new functionality, my PR adds documentation that describes how to use it.
    • All the public functions and the classes in the PR contain docstrings that explain what it does
    • If you implement backwards incompatible changes, please leave a note in the Updating.md so we can assign it to a appropriate release

Copy link

@nemkin nemkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great diagram! :)

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice !

@potiuk
Copy link
Member

potiuk commented Dec 9, 2019

@KKcorps -> maybe you can take a look as well ? WDYT

@mik-laj
Copy link
Member

mik-laj commented Dec 9, 2019

Can you also update the description under the image? We should add information about scheduled state.

@mik-laj mik-laj changed the title [AIRFLOW-XXX] Upload task lifecycle image to documentation [AIRFLOW-XXX] Add task lifecycle image to documentation Dec 9, 2019
@KKcorps
Copy link
Contributor

KKcorps commented Dec 9, 2019

It looks good. A suggestion from my end will be that A state transition diagram should consist of only states. The part such as Scheduler, Executor, and Worker should be indicated either on the connections or not at all.
Also, would it make sense to include what happens when you press Clear?

@mik-laj
Copy link
Member

mik-laj commented Dec 9, 2019

@KKcorps This is not a state diagram but lifecycle diagram for the task Information about the components is key. It is also not necessary to add additional states if they do not fall into the standard task life cycle. In any case, you can mark a task as empty, successful or unsuccessful. This makes it very difficult to understand the diagram.

@KKcorps
Copy link
Contributor

KKcorps commented Dec 9, 2019

Ok then let's leave components as they are for now.
But can we do two things
Add a legend that indicates what blue boxes, white boxes, solid arrows, and dotted arrows imply
Change the name of the file, there's already a task_lifecycle.png in the img directory.

@nemkin
Copy link

nemkin commented Dec 11, 2019

image

New look.

@KKcorps
Copy link
Contributor

KKcorps commented Dec 11, 2019

Looks great!

@mik-laj mik-laj merged commit 6882d35 into apache:master Dec 12, 2019
kaxil pushed a commit that referenced this pull request Dec 17, 2019
kaxil pushed a commit that referenced this pull request Dec 17, 2019
ashb pushed a commit that referenced this pull request Dec 19, 2019
galuszkak pushed a commit to FlyrInc/apache-airflow that referenced this pull request Mar 5, 2020
@yuqian90
Copy link
Contributor

Hi @kaverisharma09 and @mik-laj I'm adding a new state in #16681 and thus need to update this diagram? May I know what tool you used to create the diagram? I guess we may want to keep the style of the diagram consistent so I'm trying use the same tool as you did.

@mik-laj
Copy link
Member

mik-laj commented Jul 13, 2021

I'm afraid this was not made by any diagram drawing tool, but a vector editor was used e.g. Corel Draw, Inkscape or other similar.

@potiuk
Copy link
Member

potiuk commented Jul 13, 2021

Possibly you can re-do it - what I use our ASF confluence for that - there you can use the drawing capability available there for free (and online) - see for example: https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-23+Migrate+out+of+Travis+CI - I edit images there and export it as .png files. We also have some automated .mermaid diagrams that are automatically generated from markdown-like description (but it is useful for simple diagrams): https://github.com/apache/airflow/tree/main/images/ci.

@kaxil
Copy link
Member

kaxil commented Jul 13, 2021

Hi @kaverisharma09 and @mik-laj I'm adding a new state in #16681 and thus need to update this diagram? May I know what tool you used to create the diagram? I guess we may want to keep the style of the diagram consistent so I'm trying use the same tool as you did.

Upload images to https://cwiki.apache.org/confluence/display/AIRFLOW/File+lists if you plan to use Draw.io or Lucid chart.

@kaverisharma09
Copy link
Contributor Author

kaverisharma09 commented Jul 13, 2021 via email

@potiuk
Copy link
Member

potiuk commented Jul 13, 2021

Upload images to https://cwiki.apache.org/confluence/display/AIRFLOW/File+lists if you plan to use Draw.io or Lucid chart.

+1. I think the confluence-embedded images are draw.io ones.

@yuqian90
Copy link
Contributor

@kaxil @potiuk @mik-laj @kaverisharma09 Thank you for your responses. In case you missed my comment, I've updated #16681 with a new graph. I'll upload to https://cwiki.apache.org/confluence/display/AIRFLOW/File+lists once the PR is approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants