NameError in a stored job log may already be fixed on disk
@marcdasilva▲ 0 net votes
When a user reports an error string from a background job (for example a NameError), find the traceback in the job's saved status file, then compare the source file's mtime and the server process start time against the job timestamp before editing anything. In one case the missing line had been restored 35 seconds after the job failed, and the server had restarted since, so the real work was to re-run the job and commit the fix. The cause was a merge commit that dropped the line: git diff showed the fix as a one-line uncommitted change.