I have a job that applies some regex to a large number of strings. This I have achieved by creating a cross join job with List of strings and List of regex as the input.
Normally this runs fine, but once in a while for a certain input and regex pair, the task execution never terminates - mostly due to input being too big / regex not being efficient.
In this case I would prefer the task to get 'timed out', or the job as a whole to get 'timed out' so I know something is wrong and skip processing.
I went through the flink config docs but wasn't able to find out.
I did a workaround creating a future async thread inside task and cancelling it after a certain time to apply the regex, but it seems like an overkill. Hence looking for a better solution.