Open sobek1886 opened 9 months ago
Having the same issue here following the tutorial for remote colab agents
The problem is the diff you probably have in your task, sent #1220 to hopefully fix.
This is the diff ("uncomitted changes") you'll probably see if you open the task in your ClearML project:
# Copyright 2023 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Custom kernel launcher app to customize socket options."""
from ipykernel import kernelapp
import zmq
# We want to set the high water mark on *all* sockets to 0, as we don't want
# the backend dropping any messages. We want to set this before any calls to
# bind or connect.
#
# In principle we should override `init_sockets`, but it's hard to set options
# on the `zmq.Context` there without rewriting the entire method. Instead we
# settle for only setting this on `iopub`, as that's the most important for our
# use case.
class ColabKernelApp(kernelapp.IPKernelApp):
def init_iopub(self, context):
context.setsockopt(zmq.RCVHWM, 0)
context.setsockopt(zmq.SNDHWM, 0)
return super().init_iopub(context)
if __name__ == '__main__':
ColabKernelApp.launch_instance()
The problem is the diff you probably have in your task, sent #1220 to hopefully fix.
This is the diff ("uncomitted changes") you'll probably see if you open the task in your ClearML project:
# Copyright 2023 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Custom kernel launcher app to customize socket options.""" from ipykernel import kernelapp import zmq # We want to set the high water mark on *all* sockets to 0, as we don't want # the backend dropping any messages. We want to set this before any calls to # bind or connect. # # In principle we should override `init_sockets`, but it's hard to set options # on the `zmq.Context` there without rewriting the entire method. Instead we # settle for only setting this on `iopub`, as that's the most important for our # use case. class ColabKernelApp(kernelapp.IPKernelApp): def init_iopub(self, context): context.setsockopt(zmq.RCVHWM, 0) context.setsockopt(zmq.SNDHWM, 0) return super().init_iopub(context) if __name__ == '__main__': ColabKernelApp.launch_instance()
From my side the issue also occured with normal projects, it was just public replicable on the tutorial too. Will try again tomorrow
Describe the bug
A clear and concise description of what the bug is.
Hi. I'm going through the getting started Colab notebooks. I run into an issue when trying to execute tasks using an agent set-up through the 2nd tutorial notebook.
I start the agent using
Then, every time when I enqueue a task, it fails. Example terminal output:
Expected behaviour
What is the expected behaviour? What should've happened but didn't? I expected the tasks to execute successfully.
Environment