[scheduler] Fix taped coredumping when Postgres scheduler enabled
Description
Fixes taped coredumping when the Postgres scheduler is enabled.
Checklist
-
Documentation reflects the changes made. -
Merge Request title is clear, concise, and suitable as a changelog entry. See our contributing docs
References
Closes #1425 (closed)