gem/oq-engine — pull request #886 by larsbutler (2012-09-28 13:53:13+00:00)
Title: Job stats tweaks

A handful of small changes:

- job_stats table now includes `num_tasks` fields
- every job_stats attribute is optional (nullable), except for the `start_time`
- the supervisor now creates the initial job_stats record... this seemed to make more sense, since the supervisor was also responsible for recording job_stats.stop_time
- this functionality was moved out of the `engine` code
- each of the hazard calculators must call `record_init_stats` to record all job stats, including: num_sites, num_tasks, and num_realizations