THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- `job.container.validator.enabled` to control if we should enable the container validator on the container side
- `job.container.validator.schedule.ms` to control the time period between validation checks between container and JobCoordinator
- set an environment variable with the "Execution Resource ID" during container launch. This can be read from the container to make requests to the above endpoint.
In order to shutdown the run loop from the validator thread I plan to create a new interface called Killable:
Code Block language java public interface Killable { void shutdown(); }
Implement a new interface "Killable" which has "shutdown()" as a method. This can be implemented the RunLoop and AsyncRunLoop. The reason for this is so that the run loop can be passed
Since shutdown() is already implemented by the RunLoop and AsyncRunLoop, we can pass a Killable typeto the validator thread to
call shutdownshutdown the run loop if the container is invalid.
Implementation and Test Plan
...