question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebJobs have stopped being built and included in deployment

See original GitHub issue

We have been successfully using Kudu to build and deploy our site for quite some time. We’re using a custom deploy script, which is based on the one generated by Kudu. The only modifications to the script were additions to package up some stuff with gulp.

Today, I needed to reconfigure GitHub-based deployment because our repository was renamed. In both slots (production and CI), the build succeeded with the same source, but the continuous WebJobs — there are six — are not being included in the build or deployed bits. It has been a couple months since a build was triggered. Because I had to reconfigure our deployment, I lost deployment history and can’t roll back.

I checked the Microsoft.Web.WebJobs.Publish to see if there had been any updates and found none.

This is a .NET 4.6 Web API application. We are using webjobs-list.json in the Properties directory of the source to include our jobs. I’ve been using Visual Studio 2015 to develop locally.

Please let me know what other information would be helpful.

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:24 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
davidsidlingercommented, Jun 28, 2017

My guess is that the change to packages.config got committed without the update of the .csproj making it in. I do think that future versions of the package should cause a MSBuild failure if the expected import is missing. I know that many other packages do this.

1reaction
davidsidlingercommented, Jun 28, 2017

@vijayrkn You solved it. The .csproj didn’t get updated when we upgraded packages. This was fine until I reconfigured deployment in the App Service, which blew away the repository on the instance and removed the “dead” reference to 1.0.12.

<Import Project="..\packages\Microsoft.Web.WebJobs.Publish.1.0.12\tools\webjobs.targets" Condition="Exists('..\packages\Microsoft.Web.WebJobs.Publish.1.0.12\tools\webjobs.targets')" />

My everlasting gratitude.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix for: "WebJob cannot be added from portal if deployment ...
This is an error that only started coming up in the past few months as I have already created many WebJobs from the...
Read more >
Deployment of Azure Web Site stops existing Web Job
I have an Azure Web Site. The site is automatically built and deployed via TFS online (visualstudio.com). The site has Web Site Mode ......
Read more >
deploying web app with webjob to app service hangs
I have a asp.net web application project with 2 web jobs. When trying to publish this application to an azure app service, the...
Read more >
Ultimate Guide to Deploying Azure App Service WebJobs ...
The WebJobs are intended to replace several on-prem background jobs. The requirement was to have the WebJobs be deployed as part of a...
Read more >
Develop with WebJobs in Azure
In the Web App blade, click on WebJobs. In the WebJobs lens, click on the WebJob and then click Stop. Once the WebJob...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found