Template for run longtime queue tasks through ajax