Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i debug local worker :(? #216

Open
Hi1805 opened this issue Dec 2, 2024 · 0 comments
Open

How can i debug local worker :(? #216

Hi1805 opened this issue Dec 2, 2024 · 0 comments
Labels
question Information requested from user triage Issues still not triaged by team

Comments

@Hi1805
Copy link

Hi1805 commented Dec 2, 2024

Topic

No response

Ask away!

Thank you your supporting,

I don't know position breakpoint in local worker

  1. I run make debug-worker (Success)
  2. I tried setting a breakpoint like below but that doesn't seem to work.

Logs:
{"app_id": "terravibes-worker", "instance": "terravibes-worker-bd78c75f4-sdk2w", "level": "ERROR", "msg": "Failed to run op for event 00-102154ccdac74dc984e70691f64c1ccb-32a5a4ca53d6e8ad-01\nTraceback (most recent call last):\n File \"/opt/conda/lib/python3.11/site-packages/vibe_agent/worker.py\", line 416, in get_future_result\n ret = child.result(monitoring_period_s)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/concurrent/futures/_base.py\", line 458, in result\n raise TimeoutError()\nTimeoutError\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/opt/conda/lib/python3.11/site-packages/vibe_agent/worker.py\", line 392, in success_callback\n self.run_op_from_message(message, MAX_OP_EXECUTION_TIME_S)\n File \"/opt/conda/lib/python3.11/site-packages/vibe_common/telemetry.py\", line 74, in wrapper\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_agent/worker.py\", line 341, in run_op_from_message\n out = self.run_op_with_retry(content, message.run_id, timeout_s)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_common/telemetry.py\", line 74, in wrapper\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_agent/worker.py\", line 487, in run_op_with_retry\n ret = self.try_run_op(spec, content, inner_timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_common/telemetry.py\", line 74, in wrapper\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_agent/worker.py\", line 460, in try_run_op\n ret = self.get_future_result(\n ^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_agent/worker.py\", line 429, in get_future_result\n raise RuntimeError(\nRuntimeError: Workflow was completed/failed/cancelled while running op. Terminating child process.", "scope": "vibe_agent.worker.Worker", "time": "2024-12-02 02:50:05,422", "type": "log", "ver": "dev"} {"app_id": "terravibes-worker", "instance": "terravibes-worker-bd78c75f4-sdk2w", "level": "ERROR", "msg": "Failed to process event with id 00-102154ccdac74dc984e70691f64c1ccb-32a5a4ca53d6e8ad-01\nTraceback (most recent call last):\n File \"/opt/conda/lib/python3.11/site-packages/vibe_agent/worker.py\", line 416, in get_future_result\n ret = child.result(monitoring_period_s)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/concurrent/futures/_base.py\", line 458, in result\n raise TimeoutError()\nTimeoutError\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/opt/conda/lib/python3.11/site-packages/vibe_common/messaging.py\", line 598, in accept_or_fail_event\n return success_callback(message)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_common/telemetry.py\", line 74, in wrapper\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_agent/worker.py\", line 392, in success_callback\n self.run_op_from_message(message, MAX_OP_EXECUTION_TIME_S)\n File \"/opt/conda/lib/python3.11/site-packages/vibe_common/telemetry.py\", line 74, in wrapper\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_agent/worker.py\", line 341, in run_op_from_message\n out = self.run_op_with_retry(content, message.run_id, timeout_s)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_common/telemetry.py\", line 74, in wrapper\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_agent/worker.py\", line 487, in run_op_with_retry\n ret = self.try_run_op(spec, content, inner_timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_common/telemetry.py\", line 74, in wrapper\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_agent/worker.py\", line 460, in try_run_op\n ret = self.get_future_result(\n ^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.11/site-packages/vibe_agent/worker.py\", line 429, in get_future_result\n raise RuntimeError(\nRuntimeError: Workflow was completed/failed/cancelled while running op. Terminating child process.", "scope": "vibe_common.messaging.accept_or_fail_event", "time": "2024-12-02 02:50:05,425", "type": "log", "ver": "dev"}

Breakpoint:
Image

Image

Could you please help me debug worker ?

Many thanks

@Hi1805 Hi1805 added the question Information requested from user label Dec 2, 2024
@github-actions github-actions bot added the triage Issues still not triaged by team label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Information requested from user triage Issues still not triaged by team
Projects
None yet
Development

No branches or pull requests

1 participant