clean workunit directory even if the workunit is failed

the deletion of the failed workunit directory will be executed after 30 minutes
need auto_clean_dir be configured to true
the deletion of the done workunit directory will be deferred for 1 minute