Hello! I have a `@job` calling multiple `@op` but ...
# ask-community
c
Hello! I have a
@job
calling multiple
@op
but dagit is only showing me the first one. No dependency graph. Any idea why? Thanks for any help
c
Hi Chris. Would you mind sharing your code so I can replicate?
c
I will on Monday thanks in advance 🙂
Copy code
@job()
def my_job():
    a = b(c(start=d(e())))
    f = g(h)
    j(k)
My code looks something like this. What exactly do you need?
c
Hi Chris. I'm trying to replicate the issue with a job that looks like this:
Copy code
@job
def my_job():
    a = b(c(d(e())))
    f = g(h())
    j(f)
I'm seeing a dependency graph like this:
c
Probably the problem is due to
start=
don’t you think?
It looks like you didn’t use that and your graph is looking normal
c
Hm.....so I modified the job to now contain the
start
arg:
Copy code
from dagster import job, op, In, Nothing


@op
def b(a):
    return a


@op(ins={"start": In(Nothing)})
def c():
    return 1


@op
def d(a):
    return a


@op
def e():
    return 1


@op
def h():
    return 1


@op
def g(a):
    return a


@op
def j(a):
    return a


@job
def my_job():
    a = b(c(d(e())))
    f = g(h())
    j(f)
I'm still seeing all of the ops display in dagit though on the job page:
c
Copy code
from dagster import job, op, In, Nothing


@op
def a():
    return 1


@op
def b(value):
    return value


@op(ins={"start": In(Nothing)})
def c():
    return 1


@op
def d(value):
    return value


@op
def e(value):
    return value


@op
def f(value):
    return value


@op
def g(value):
    return value


@op
def h(value):
    return value


@op
def i(value):
    return value


@job
def my_job():
    f = e(d(c(start=b(a()))))
    h = g(f)
    i(h)
My code is actually like this.
What’s weird is that this is working.
But not for my real code. Obviously the real example is more complex.
I don’t how to reproduce in a simpler example soryr