fixes #741 by passing task to delayed_job

fixes #741 by passing task to delayed_job