task automanage and create task sleep function