question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependency issues

See original GitHub issue

Is there a way to submit jobs with dependencies between layers currently? I’ve been unable to submit a job with dependencies between layers, either via the cuesubmit GUI or using the outline Python API.

Here’s one attempt:

import outline

ol = outline.Outline("Ariana", user="donalm", frame_range="1-10", shot="TestShot", show="testing")

command=["/bin/true", "-F", "{frameToken}"]
layer_0 = outline.Layer("Birgit", env={}, service="shell", chunk=1, command=command, frame_range="1-10")
ol.add_layer(layer_0)

layer_1 = outline.Layer("Christie", env={}, service="shell", chunk=1, command=command, frame_range="1-10")
layer_1.depend_on(layer_0, outline.depend.DependType.FrameByFrame)
ol.add_layer(layer_1)

launched = outline.cuerun.launch(ol, use_pycuerun=False)

I’ve experimented with other DependType values, but with similar results.

On the server side I get this exception:

2019-02-08 13:42:08,402 INFO grpc-default-executor-185 com.imageworks.spcue.service.JobSpec - primary service: shell birgit
2019-02-08 13:42:08,403 INFO grpc-default-executor-185 com.imageworks.spcue.service.JobSpec - primary service: shell christie
2019-02-08 13:42:08,403 ERROR grpc-default-executor-185 io.grpc.internal.SerializingExecutor - Exception while executing runnable io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed@16d15e5c
java.lang.IllegalArgumentException: No enum constant com.imageworks.spcue.grpc.depend.DependType.FRAMEBYFRAME
	at java.lang.Enum.valueOf(Enum.java:238)
	at com.imageworks.spcue.grpc.depend.DependType.valueOf(DependType.java:15)
	at com.imageworks.spcue.service.JobSpec.handleDependTag(JobSpec.java:714)
	at com.imageworks.spcue.service.JobSpec.handleDependsTags(JobSpec.java:241)
	at com.imageworks.spcue.service.JobSpec.parse(JobSpec.java:817)
	at com.imageworks.spcue.service.JobLauncher.parse(JobLauncher.java:71)
	at com.imageworks.spcue.servant.ManageJob.launchSpecAndWait(ManageJob.java:248)
	at com.imageworks.spcue.grpc.job.JobInterfaceGrpc$MethodHandlers.invoke(JobInterfaceGrpc.java:2694)
	at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:171)
	at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:283)
	at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:707)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

My Python script dies noisily:

Traceback (most recent call last):
  File "/mnt/software/dev/dmcmullan/OpenCue/venv/lib/python2.7/site-packages/opencue/util.py", line 38, in _decorator
    return grpcFunc(*args, **kwargs)
  File "/mnt/software/dev/dmcmullan/OpenCue/venv/lib/python2.7/site-packages/opencue/api.py", line 320, in launchSpecAndWait
    job_pb2.JobLaunchSpecAndWaitRequest(spec=spec), timeout=Cuebot.Timeout).jobs
  File "/mnt/software/dev/dmcmullan/OpenCue/venv/lib/python2.7/site-packages/grpc/_channel.py", line 533, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/mnt/software/dev/dmcmullan/OpenCue/venv/lib/python2.7/site-packages/grpc/_channel.py", line 467, in _end_unary_response_blocking
    raise _Rendezvous(state, None, None, deadline)
_Rendezvous: <_Rendezvous of RPC that terminated with:
	status = StatusCode.UNKNOWN
	details = ""
	debug_error_string = "{"created":"@1549633328.404694678","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1017,"grpc_message":"","grpc_status":2}"
>

Traceback (most recent call last):
  File "opencue_test.py", line 21, in <module>
    launched = outline.cuerun.launch(ol, use_pycuerun=False)
  File "/mnt/software/dev/dmcmullan/OpenCue/pyoutline-0.1.66-all/build/lib/outline/cuerun.py", line 94, in launch
    return launcher.launch(use_pycuerun)
  File "/mnt/software/dev/dmcmullan/OpenCue/pyoutline-0.1.66-all/build/lib/outline/cuerun.py", line 209, in launch
    return self.__get_backend_module().launch(self, use_pycuerun=use_pycuerun)
  File "/mnt/software/dev/dmcmullan/OpenCue/pyoutline-0.1.66-all/build/lib/outline/backend/cue.py", line 105, in launch
    jobs = opencue.api.launchSpecAndWait(launcher.serialize(use_pycuerun=use_pycuerun))
  File "/mnt/software/dev/dmcmullan/OpenCue/venv/lib/python2.7/site-packages/opencue/util.py", line 56, in _decorator
    .format(code=code, details=details))
opencue.exception.CueException: Encountered a server error. StatusCode.UNKNOWN : No details found. Check server logs.

Thanks

DJM

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bciprianocommented, Jul 18, 2019

Thanks all. We’ll make sure to cut a new release soon.

1reaction
donalmcommented, Jul 16, 2019

Hey @lgeertsen - could you be seeing this other bug?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Emotional Dependency: What It Looks Like and How to Stop It
When you face life challenges or stress, your loved ones can offer empathy and comfort by listening to your troubles and validating your...
Read more >
Overcoming Emotional Dependency - cadabam Hospital
Emotional dependency is a state of mind where a person is incapable of taking full responsibility for their own feelings. They do have...
Read more >
Co-Dependency | Mental Health America
Underlying problems may include any of the following: An addiction by a family member to drugs, alcohol, relationships, work, food, sex, or gambling....
Read more >
25 Characteristics of Unresolved Dependency Issues
1. We assume responsibility for others' feelings/behaviors · 2. We feel overly responsible for others' feelings/behaviors · 3. We have difficulty ...
Read more >
Emotional dependence: what is it, symptoms and treatment
What are the causes of emotional dependence? ... Those with emotional dependency are usually people with low self-esteem, many insecurities and little self- ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found