“InactiveInstance” WebJob Status for Continuous and Singleton jobs

ぐ巨炮叔叔 提交于 2019-12-12 03:32:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!