OpenFn / OpenFn/lightning

Connection between worker & channel closes, can't reconnect (lost runs?)

Open
#3,622 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Can't replicate DevX
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

Connections between ws-worker and lightning getting closed/dropped and somehow not reconnecting.

We don't really know how to reproduce or fix this yet, but if it happens a run will be lost. We have not seen any runs lost related to this in the last 6 days, so it's possible that it's been resolved by other changes but we want to keep this issue open for a little while just in case

cc @josephjclark , @rorymckinley , @stuartc , @theroinaochieng

Details on Slack

  • @Joe This is in the logs before the timeout: Critical error in channel run:ed9d8f83-65f8-4721-8132-814303606b94
  • @Rory that's an error coming out of the phoenix socket - means it can't talk on the channel. No error details returned. Annoying. So yes, looks like a connectivity issue on the socket. And after that point other requests start failing

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the ws-worker/lightning channel handling and the Phoenix socket error described in the issue, then consult the linked Slack thread and the recorded critical-error log. The issue needs a reproducible closed-connection case before a fix can be defined; done should include reliable reconnection without lost runs and evidence covering the failure path.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
backend, distributed-systems, networking
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.