When running the BlobOperations sample from the azure-webjobs-sdk-samples (1.0.0-rc1) (https://github.com/Azure/azure-webjobs-sdk-samples/tree/master/BasicSamples/BlobOperations) I have the following problem.
The BlobTriggers run fine when the WebJob is started:
Job host started
Executing: 'Functions.BlobNameFromQueueMessage' because New queue message
detected on 'persons'.
Executing: 'Functions.BlobToBlob' because New blob detected:
input/BlobOperations.txt
Executing: 'Functions.BlobTrigger' because New blob detected:
output/BlobOperations.txt
But when I add new files to the "input" (or "output") containers nothing happens, even after waiting for more than 10 minutes.
When I restart the WebJob, the files I uploaded do get picked up by the BlobTrigger!
This is the (unchanged) BlobTrigger from the samples:
public static void BlobToBlob([BlobTrigger("input/{name}")] TextReader input,
[Blob("output/{name}")] out string output)
{
output = input.ReadToEnd();
}
The samples are using the latest version of the Azure Webjobs SDK:
<packages>
<package id="Microsoft.Azure.WebJobs" version="1.0.0-rc1" targetFramework="net45" />
<package id="Microsoft.Azure.WebJobs.Core" version="1.0.0-rc1" targetFramework="net45" />
<package id="Microsoft.Data.Edm" version="5.6.0" targetFramework="net45" />
<package id="Microsoft.Data.OData" version="5.6.0" targetFramework="net45" />
<package id="Microsoft.Data.Services.Client" version="5.6.0" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="1.8.0.0" targetFramework="net45" />
<package id="Newtonsoft.Json" version="6.0.4" targetFramework="net45" />
<package id="System.Spatial" version="5.6.0" targetFramework="net45" />
<package id="WindowsAzure.Storage" version="4.0.1" targetFramework="net45" />
</packages>
I have not changed the code of the samples, except for the location of the packages (mine are in a shared location - D:\Development\Nuget.Packages) and the AzureWebJobsDashboard and AzureWebJobsStorage connection strings.
I have the same problem in a 'real' project that is about to go into Production.
Is this a bug, or am I doing something wrong?