def METHOD_NAME(self):
    try:
        cur = self.conn.cursor()
        cur.execute(
            'SELECT DISTINCT id FROM workflows WHERE entry_type = "task"')
        return [x[0] for x in cur.fetchall()]
    except sqlite3.DatabaseError as e:
        env.logger.warning(
            f"Failed to get tasks from signature database: {e}")
        return []