Hello all, What is the difference between a graph...
# ask-community
d
Hello all, What is the difference between a graph and a job? I am not able to get the concept behind it right.
b
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
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
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.