Start to close timeout and intercepting the pollworkflowtaskqueuerequests

Use case is
I am intercepting the PollWorkflowTaskQueueRequests, performing some mandatory compliance checks and forwarding the request according to the response of the compliance checks to the server.
Question is:

  1. What is the recommended pattern if the compliance checks takes more time, then workflow execution will time out ?
  2. Is WTT applicable for the intercepted requests since it has not reached to the server ?
  3. What will happen if worklflow execution timeout is set for this wf ?

The timeout of a workflow task returned by PollWorkflowTaskQueueRequests is unrelated to the workflow timeout.

It is difficult to understand at which point you want to apply the compliance checks. Are they at the start of the workflow or after anything the workflow does?