Make task schedule interval configurable

Signed-off-by: walteryang <walteryang47@users.noreply.github.com>