AmpersandTarski / RAP

RAP is a tool that lets you analyse Ampersand models, generate functional specifications and make prototypes of information systems. It is the primary tool for students of the Open University of the Netherlands in the course Rule Based Design.
5 stars 3 forks source link

Fix student prototype that is there for the image caching #355

Closed FranSlot closed 5 months ago

FranSlot commented 7 months ago

Bug: To increase load times for student containers we have a container pull the student prototype image into the cluster. This container runs without arguments. It then loads the non-existent arguments into an ADL script and passes an empty script to the ampersand compiler. The compiler throws an exception and the pod would crash. Because the deployment expects there to be at the minimum one pod, it tries to restart the crashed pod. This process would continue ad infinitum, albeit with increasing time between restarts.

Solution: To prevent the pod from crashing we check whether there are any arguments when running the start-up script. If none are given, the pod will sleep.