It depends on the goals that you want to achieve them. For example one of the approaches can be predicting its execution time. This is very simple scenario but you could develop it based on your requirements.
Please check the following link to get more information: