modify the creating of a task
- default time is long.max