def number_total_on_queue(job_type): num = get_sql_answer(db, "select count(*) from {}".format(table_name(job_type))) return num