Fixing sqstask to accept a second boolean parameter to cancel long-polling