not perfect but attempt to prevent breaking task by exceeding rate limit