问题
i have created a continuous webjob on azure, and it is running as singleton by adding is_singelton to true in the settings.job.
sometimes, i notice that it gives me status of InativeInstance.
what does this mean? please if any one can describe it simply!
and the reason i have made it singleton, because for some reason the continuous webjob is calling [NoAutomaticTrigger] function multiple times, and because the function i am calling is billing, that is causing in creating multiple invoices for the same subscription, so i have forced to be singleton, so it will work without any issue. but here I am facing another issue which is Inactive Instance.
is there a way that i can solve this issue?
回答1:
This is actually a bug in what the Portal displays. The Portal ends up asking an arbitrary instance about the WebJob status, and if it happens to hit any instance other than the one that's actually running it, it will be reported as inactive.
But note that despite the incorrect reporting, the WebJob is most likely correctly running on the one singleton instance.
来源:https://stackoverflow.com/questions/35406259/inactiveinstance-webjob-status-for-continuous-and-singleton-jobs