OpenFn / lightning

OpenFn/Lightning ⚡️ is the newest version of the OpenFn DPG and provides a web UI to visually manage complex workflow automation projects.
https://openfn.github.io/lightning/
GNU Lesser General Public License v3.0
126 stars 34 forks source link

Internal Server Error: reload inspector on a step that's been executed twice in one run #2201

Closed sentry-io[bot] closed 2 months ago

sentry-io[bot] commented 3 months ago

Apologies for no audio here: https://www.loom.com/share/bb9757a35ed64d6faa22573f9a12ddb7

Sentry Issue: LIGHTNING-DA

Ecto.MultipleResultsError: expected at most one result but got 2 in query:

from s0 in Lightning.Invocation.Step,
  join: r1 in assoc(s0, :runs),
  on: r1.id == ^"cb2e9baa-2b6f-4b66-867e-6a33a6f7f244",
  where: s0.job_id == ^"1276bf5f-b7ed-4368-a6ea-0b88ed4ff91b"

  File "lib/ecto/repo/queryable.ex", line 154, in Ecto.Repo.Queryable.one/3
  File "lib/lightning_web/live/workflow_live/edit.ex", line 1426, in LightningWeb.WorkflowLive.Edit.maybe_follow_run/2
  File "lib/lightning_web/live/workflow_live/edit.ex", line 696, in LightningWeb.WorkflowLive.Edit.handle_params/3
  File "lib/phoenix_live_view/utils.ex", line 462, in anonymous fn/5 in Phoenix.LiveView.Utils.call_handle_params!/5
  File "/app/deps/telemetry/src/telemetry.erl", line 321, in :telemetry.span/3
...
(3 additional frame(s) were not displayed)