If kubernetes is enabled, CPU tasks run as kubernetes Jobs. The async function should check when the task is finished