This makes me wonder, why isn't job_id decalred NOT NULL? How would a task without an associated job make any sense?