https://dagster.io/ logo
#ask-community
Title
# ask-community
d

DE-2

03/29/2022, 4:04 AM
Hello all, What is the difference between a graph and a job? I am not able to get the concept behind it right.
b

Ben Gatewood

03/29/2022, 4:16 AM
In my head I think about them a bit like a class definition vs an instance of that class. Probably imperfect but relatively close I think
z

Zach

03/29/2022, 3:45 PM
a graph is a more general-purpose concept which defines a set of related ops in a graph-like structure. a job is an instance of the graph which is configured to carry out a set of tasks in a particular context. this way you can define one graph which can be reused and configured in multiple ways - one use case of this could be to configure a dev job and a prod job from the same graph, using different resource definitions that point to different external dependencies like your prod database and your dev database.
d

DE-2

03/30/2022, 4:25 AM
Thanks @Zach . I now understand it better. So graph is mainly a logical structure of how ops can be linked and tied together. And job is an instance of the same.