Check for old jobs in the database