move hdr long task to thread