Skip to content

A failure after the commit is reported as a failed write #60

Done

Description

@tabedzki

🤖 AI text below 🤖

Found in a code review of #57, #58 and #59. It predates them.

Problem
In createRecording, CreateNewJob, RerunJob and RegisterPreParamList, the work after conn.commitTransaction runs inside the same try as the inserts: refreshing the tables (fillRecordingTable, fillJobTable, fillParams, ...), the success uiconfirm, and resetting the form. If any of it throws, the catch treats the write as failed:

  • it reports a failure to Slack (Recording registration, Job creation, Job rerun)
  • it shows "Recording was not created" / "Job was not created" / "Rerun of job failed" / "Preprocess Steps was not created"
  • it re-enables the button

But the rows are already committed. For createRecording the files were also already moved to cup, so an operator who retries tries to register the same recording again.

Fix
Track whether the commit happened. If something fails after it, say that the write succeeded and only refreshing the GUI failed, don't report a failed write to Slack, and don't re-enable the button for a retry.

Linked PR
#61

Activity

  1. added a commit that references this issue on Dec 1, 2026
    869c695
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions