Consider the following theoretical case.
A Jew owns a number of supermarkets where he pays a set monthly fee to a service company that has non-Jewish workers come by and make regular check-ups on the refrigerators used in the store. The workers will come of course if something is broken and are called for it; however, they also come from time to time to check how things are working, whether anything is broken, etc. They can even come by when the store is closed: they have the key to the store. Their instructions are that, if they discover something broken on one of these inspection visits, they should fix it on the spot. The fridges obviously run all the time, including on Shabbos when the store is closed, and if they stopped working then the food stored within would go bad, resulting in a big hefsed (loss).
Is it okay to have the non-Jewish workers lichatchila come by on Shabbos, even if they might have to fix something if they discover a broken fridge? Could a reason be since they are paid a set amount on a monthly basis? Or perhaps the fact that if they don't come inspect and fix the fridge it would lead to a big loss?
(I'm asking only with respect to laws of Shabbos. Ignore laws of, for example, kashrus.)