ProductionMu Mutation

upsertOperationGraph

Topics: Jobs

Replace a job's entire operation dependency graph: all existing edges for the job are deleted and the supplied ones inserted, in a single transaction that also applies any operation scheduling preferences. Validation (endpoint scopes, no self-loops, no duplicates, no cycles) is atomic with the write; on failure nothing changes and the errors are returned in the payload. Requires operation:write permission.

Returns

UpsertOperationGraphPayload!

Arguments

The job's complete edge set, plus optional operation scheduling-preference patches.

Exact field SDL
"""
Replace a job's entire operation dependency graph: all existing edges for the job are deleted and the supplied ones inserted, in a single transaction that also applies any operation scheduling preferences. Validation (endpoint scopes, no self-loops, no duplicates, no cycles) is atomic with the write; on failure nothing changes and the errors are returned in the payload. Requires operation:write permission.
"""
upsertOperationGraph(
  """
  The job's complete edge set, plus optional operation scheduling-preference patches.
  """
  input: UpsertOperationGraphInput!
): UpsertOperationGraphPayload! @topic(names: ["jobs"])

Declared on Mutation. Access is checked by the platform for each operation.