New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebJob gets aborted. No exceptions are logged. #19686
Comments
I have created a WebJob of Triggered type with Diagonostic logging. It basically fetches data from Azure SQL. I triggered the Web job at 11/28/2018 08:16:23 and the last log of fetching data is 11/29/2018 4:53:13. |
Is there any limitation on the time that a WebJob can run ? |
Note: Always On is enabled for this WebJob |
@AkshathaSP , Could you please provide the Azure document that you are referring to? And, what App Service Plan are you using? |
Hi, |
What is the default time out if WEBJOBS_IDLE_TIMEOUT and stopping_wait_time are not explicitly specified ? |
@AkshathaSP , Thanks for the update. If you need 30 minutes of execution time before azure aborts it use: |
@AkshathaSP ,Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion. |
Hi @AjayKumar-MSFT , |
What happens to the App Service in the background when a Diagnostic log settings are changed while the WebJobs are running ? Is it better to run as Worker role instead to avoid background process killing the WebJob ? |
@AkshathaSP , As mentioned in the document here “Unlike changing the web.config file, enabling Application diagnostics or changing diagnostic log levels does not recycle the app domain that the application runs within.” |
@AjayKumar-MSFT , It is used only on need basis, so we trigger it manually, it is not a scheduled WebJob. What is the recommended way to add retry functionality in code for this case ? Since there is no retry policy settings available for triggered type unlike in scheduled type. |
@AkshathaSP , You have mentioned that there are no error logs, if you haven’t done this already, try adding Try/Catch blocks to capture any specific error message/error code.
If the issue still persists, could you please send an email to AzCommunity at Microsoft dot com with the below details we would like to work closer with you on this matter. |
Azure Scheduler is retiring soon as per the documentation: https://docs.microsoft.com/en-us/azure/scheduler/scheduler-get-started-portal . And LogicApps is not feasible for current requirements. |
@AkshathaSP, Yes, Azure Scheduler is retiring, and Azure Logic Apps would be replacing it. Since you have mentioned that Logic Apps does not fit your requirement or scenario, please do optimize the code as highlighted and see how that goes. If you need further assistance on this issue as mentioned in my previous post, do send an email we would be more than happy to assist you further on this matter. |
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: