How did you implement the service task? As Java Delegates?
In this case, the behavior is expected: By default, Camunda retries tasks that take longer than 5 min to prevent that processes get stuck because a job got stuck or crashed.
However, you can configure this time-out period. You can read more about it in the following thread: