Merge branch 'release-1.1.3' into dev
Improve slurm parser input checking.

- Change asserts to if...raise ValueError.
- Add examples to unit test to check for negative durations and StopTime
  less than StartTime.
Comment out unimplemented test.
Tidy up PBS parser and test to be more extensible.
Change asserts to if...raise ValueError.
Merge pull request #4 from apel/slurm_parser_fixes

Improve slurm parser input checking.
Merge pull request #5 from apel/pbs_parser_tidy

PBS Parser Tidy
Add purging of message queues to loader.

- Add purge of message queues after loading all messages to avoid empty
  intermediate directories filling up top directory. Only purges if
  messages found to reduce overhead.
Tidy and improve dbloader log message output.

- Add traceback for unexpected exceptions using logging.exception().
- Remove pointless type(exception) as this would always return 'instance'.
Unlock current message queue element on shutdown.

- Add unlocking of current msg queue element to shutdown method so no
  locked elements left if shutdown called during long loading operation.
- To support first change, make current element reference an instance
  object so it can be queried by shutdown method.
- Correct string formatting conversion in log message.
Improve log message output of loader.

- Message name (i.e. directory) is printed as well as the ID from the
  originating queue. Should help locate messages.
- General imporvements to log formatting and consistency.
Update docstring for load_all_msgs.
Refactor dbloader to remove duplicated code

Use a try...except block in run_as_daemon to hold the shutdown logic
duplicated between different try...except clauses.

Change log messages to use % formatting rather than string concatanation.
Change self.name to self.current_msg in loader.py

Change self.name to be more descriptive and check in the shutdown
function that it has been assigneed to as it may not have been before a
shutdown is initiated.
Merge pull request #6 from apel/queue_purge

Queue purging
Add try...finally block to file parsing

- Add try...finally block to ensure file is closed as before only non-gzip
  files would get closed. This also removed the duplication of calling
  parse_file.
Select SuperSummaries gt or equal to midnight on 1st of Month

Previously this was selecting EarliestEndTime greater than midnight on 1st of month and was missing those jobs whose EarliestEndTime was _exactly_ midnight on the 1st of the month.
Fix integer overflows in summaries

- Replace INT with BIGINT for wallDuration and cpuDuration in
  ReplaceSummary procedure as these fields were suffering from integer
  overflow for some sites.
Add warning when a file parse failed previously

- Add db check for zero parsed lines when current log file is found in
  ProcessedFiles table, and log a warning instead of an info message
  informing of a skipped file so that the previous problem is not hidden.
- Change "omitting" to "skipping" for ease of understanding.
Merge branch 'master' into dev