Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Jul 16, 2024
1 parent 8d0efaf commit 7cd1cdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ spec:
SlimFaas/ReplicasStartAsSoonAsOneFunctionRetrieveARequest: "false"
SlimFaas/TimeoutSecondBeforeSetReplicasMin: "300"
SlimFaas/NumberParallelRequest : "10"
SlimFaas/Schedule : |
SlimFaas/Schedule: |
{"TimeZoneID":"Europe/Paris","Default":{"WakeUp":["07:00"],"ScaleDownTimeout":[{"Time":"07:00","Value":20},{"Time":"21:00","Value":10}]}}
SlimFaas/DependsOn : "mysql,fibonacci2" # comma separated list of deployment or statefulset names
SlimFaas/SubscribeEvents : "Public:my-event-name1,Private:my-event-name2,my-event-name3" # comma separated list of event names
SlimFaas/DefaultVisibility : "Public" # Public or Private (private can be accessed only by internal namespace https call from pods)
SlimFaas/UrlsPathStartWithVisibility : "Private:/mypath/subPath,Private:/mysecondpath" # Public or Private (private can be accessed only by internal namespace https call from pods)
SlimFaas/DependsOn: "mysql,fibonacci2" # comma separated list of deployment or statefulset names
SlimFaas/SubscribeEvents: "Public:my-event-name1,Private:my-event-name2,my-event-name3" # comma separated list of event names
SlimFaas/DefaultVisibility: "Public" # Public or Private (private can be accessed only by internal namespace https call from pods)
SlimFaas/UrlsPathStartWithVisibility: "Private:/mypath/subPath,Private:/mysecondpath" # Public or Private (private can be accessed only by internal namespace https call from pods)
spec:
serviceAccountName: default
containers:
Expand Down
3 changes: 3 additions & 0 deletions src/SlimFaas/ReplicasService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ record TimeToScaleDownTimeout(int Hours, int Minutes, int Value);

private static DateTime CreateDateTime(DateTime dateTime, int hours, int minutes, string timeZoneID)
{
Console.WriteLine(" dateTime: " + dateTime);
Console.WriteLine(" hours: " + hours);
Console.WriteLine(" minutes: " + minutes);
TzdbDateTimeZoneSource source = TzdbDateTimeZoneSource.Default;
LocalDateTime local = new LocalDateTime(dateTime.Year, dateTime.Month, dateTime.Day, hours, minutes);
Console.WriteLine(" timeZoneID: " + timeZoneID);
Expand Down

0 comments on commit 7cd1cdb

Please sign in to comment.