siilisolutions / hedge

a serverless solution for clojure
Eclipse Public License 1.0
39 stars 6 forks source link

Functions deployed via deploy-to-azure fail until another deploy-to-azure is run #68

Open iisulop opened 6 years ago

iisulop commented 6 years ago

It seems if the deployed function does not exist before the deploy response from the function will always be 404. The error is reproducible with versions 0.0.4 and 8bf7201d336ad2ff3b2c8857e8b2623640a0d81e.

Command: boot hedge/deploy-azure -r test-app1 -a test-app1

The following log can be seen in the debug console:

2018-01-30T12:29:11.038 File change of type 'Changed' detected for 'D:\home\site\wwwroot\my_cool_function_corecrunch-my-data\function.json' 2018-01-30T12:29:11.038 Host configuration has changed. Signaling restart 2018-01-30T12:29:11.100 File change of type 'Changed' detected for 'D:\home\site\wwwroot\my_cool_function_core__crunch-my-data\function.json' 2018-01-30T12:29:11.100 Host configuration has changed. Signaling restart 2018-01-30T12:29:11.605 Stopping Host 2018-01-30T12:29:11.605 Job host stopped 2018-01-30T12:29:11.621 Reading host configuration file 'D:\home\site\wwwroot\host.json' 2018-01-30T12:29:11.637 Host configuration file read: {} 2018-01-30T12:29:11.637 Starting Host (HostId=test-app1, Version=1.0.11490.0, ProcessId=3636, AppDomainId=2, Debug=True, ConsecutiveErrors=0, StartupCount=2, FunctionsExtensionVersion=~1) 2018-01-30T12:29:11.668 Loaded custom extension 'BotFrameworkConfiguration' 2018-01-30T12:29:11.668 Loaded custom extension 'SendGridConfiguration' 2018-01-30T12:29:11.668 Loaded custom extension 'EventGridExtensionConfig' 2018-01-30T12:29:11.730 Generating 1 job function(s) 2018-01-30T12:29:11.762 Development settings applied 2018-01-30T12:29:11.762 Found the following functions: Host.Functions.HttpTriggerJS1 2018-01-30T12:29:11.777 Job host started 2018-01-30T12:29:11.777 The following 1 functions are in error: my_cool_function_corecrunch-my-data: No function script files present. 2018-01-30T12:34:39.680 Host Status: { "id": "test-app1", "state": "Running", "version": "1.0.11490.0" }