cdap icon indicating copy to clipboard operation
cdap copied to clipboard

[CDAP-20832] Enable periodic restart when task workers are running concurrent requests

Open arjan-bal opened this issue 1 year ago • 0 comments

CDAP-20832

This PR introduces a deadline for all task worker executions. The task worker now does a periodic restart even when "user code isolation" is disabled, i.e. its running concurrent requests. When a periodic restart is scheduled, the task worker stops accepting new requests. It waits for the new configuration "task.worker.taskExecutionDeadline.second" time to elapse. If all executing tasks finish, the task worker is restarted immediately. Otherwise the task worker is restarted after the deadline expires.

arjan-bal avatar Apr 01 '24 17:04 arjan-bal