File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace uk.me.timallen.infohub
8
8
public static class CacheNews
9
9
{
10
10
[ FunctionName ( "CacheNews" ) ]
11
- public static void Run ( [ TimerTrigger ( "* 0 */5 * * *" ) ] TimerInfo myTimer , ILogger log )
11
+ public static void Run ( [ TimerTrigger ( "* 0 */6 * * *" ) ] TimerInfo myTimer , ILogger log )
12
12
{
13
13
log . LogInformation ( $ "C# Timer trigger function executed at: { DateTime . Now } ") ;
14
14
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public class Weather_Forecast
15
15
16
16
[ FunctionName ( "CacheWeather" ) ]
17
17
[ return : Table ( "weather" ) ]
18
- public static Weather_Forecast Run ( [ TimerTrigger ( "0 */6 * * * *" ) ] TimerInfo myTimer , ILogger log )
18
+ public static Weather_Forecast Run ( [ TimerTrigger ( "* 0 */6 * * *" ) ] TimerInfo myTimer , ILogger log )
19
19
{
20
20
var lat = Environment . GetEnvironmentVariable ( "weatherlat" ) ;
21
21
var lng = Environment . GetEnvironmentVariable ( "weatherlng" ) ;
@@ -24,6 +24,8 @@ public static Weather_Forecast Run([TimerTrigger("0 */6 * * * *")]TimerInfo myTi
24
24
25
25
var forecast = OpenWeather . GetForecast ( lat , lng ) ;
26
26
27
+ log . LogInformation ( forecast ) ;
28
+
27
29
return new Weather_Forecast
28
30
{
29
31
PartitionKey = lat + "," + lng ,
You can’t perform that action at this time.
0 commit comments