It is possible for job insertion to fail but timestampInitialValue update to succeed. As a result, some generated jobs may be missing and data for those periods will not be checked for consistency. Those cases are not easy to catch.
To fix this, I'm putting timestampInitialValue update in the same try-catch block as generated jobs insertion. It is still possible that timestampInitialValue update fails after successful job insertion, resulting in job duplicates, but that's better than missing jobs.
Coverage increased (+0.2%) to 67.908% when pulling 84235aa31009ac2888cac5372a4353fadac19bf9 on ccex into d861ccfbdf9f51f409492cc95c1e0cd66266f548 on master.
It is possible for job insertion to fail but timestampInitialValue update to succeed. As a result, some generated jobs may be missing and data for those periods will not be checked for consistency. Those cases are not easy to catch.
To fix this, I'm putting timestampInitialValue update in the same try-catch block as generated jobs insertion. It is still possible that timestampInitialValue update fails after successful job insertion, resulting in job duplicates, but that's better than missing jobs.