This section describes how advanced configuration options can be used in Java transforms.
Maximum build duration
It may be desirable to limit the run duration of a job to ensure data freshness or to limit costs. For example, if a job is interacting with an external service and becomes unresponsive, it is useful to have a limit on its run duration, as it may not complete.
In Code Repositories, you can limit job duration by using the MaxAllowedDuration and Compute decorators, as shown below:
Note that despite the MaxAllowedDuration taking a Duration value, the job is polled every 5 minutes, so a value of PT3M (in ISO 8601 format) will cancel at 5 minutes, and a value of PT7M will cancel at 10 minutes, and so on.