| CPC G06F 11/1402 (2013.01) [G06F 2201/865 (2013.01)] | 24 Claims |

|
1. A computing system for optimizing job execution on an on-demand code execution system, the system comprising memory for storing computer-executable instructions and a processor that executes the computer-executable instructions to:
receive instructions to execute a job having user code on the on-demand code execution system which comprises one or more compute instances that are ordered sequentially based on size;
generate, via two or more machine learning models, a runtime prediction set for the job, the runtime prediction set including a runtime prediction that is generated by each machine learning model of the two or more machine learning models, wherein each runtime prediction is a forecast of the runtime associated with executing the job;
assign a computer instance of the one or more compute instances to the job based on a runtime type of the job, wherein the runtime type of the job is determined based on the runtime prediction having the longest runtime; and
continuously attempt to execute the job on the compute instance, wherein the job is assigned a new compute instance that is larger in size than a current compute instance upon detection of an execution error when attempting to execute the job on the current compute instance.
|