@logExceptions(_LOGGER)<EOL><INDENT>@g_retrySQL<EOL>def getActiveJobCountForClientKey(self, clientKey):<DEDENT>
with ConnectionFactory.get() as conn:<EOL><INDENT>query = '<STR_LIT>''<STR_LIT>''<STR_LIT>''<STR_LIT>' %  self.jobsTableName<EOL>conn.cursor.execute(query, [clientKey, self.STATUS_COMPLETED])<EOL>activeJobCount = conn.cursor.fetchone()[<NUM_LIT:0>]<EOL><DEDENT>return activeJobCount<EOL>
Return the number of jobs for the given clientKey and a status that is
        not completed.