After some research, I believe your issue might be related to this one. Does your workflow involve notifications with an orchestrator?
Regards!
Hi Fred,
Regarding this:
In addition, it is my understanding that a user edited the job and saved it while this specific execution was in progress, which should not be an issue.
This would indeed be the source. It looks like a change was done while the execution was still running, and some code attempted to lazy-load the Orchestrator row reference from the ScheduledExecution record with a cached primary key value.
As a way to determine whether the correct data is present, you can run the following SQL query:
SELECT se.id AS scheduled_execution_id, se.orchestrator_id AS referenced_orchestrator_id, o.id AS actual_orchestrator_id FROM scheduled_execution se LEFT JOIN orchestrator o ON se.orchestrator_id = o.id;This will help you check whether the valid Orchestrator ID is present in the ScheduledExecution records. Feel free to improve/modify it. But I am fairly sure the above-mentioned modification is the cause of the issue.
Regards!