Azure / Azure/azure-functions-core-tools

Do not print next 5 timer trigger occurrences concurrently

Open
#2,228 4 comments 0 reactions 1 assignee Assigned to @pragnagopa View on GitHub
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
4d 20h
Merged PRs (30d)
14

Description

If more than one timer is located in the project, the console becomes unreadable:

```
[2020. 09. 13. 12:00:01] The next 5 occurrences of the 'FixFaultySubscriptions' schedule (Cron: '0 0,30 * * * *') will be:
[2020. 09. 13. 12:00:01] 09/13/2020 14:30:00+02:00 (09/13/2020 12:30:00Z)
[2020. 09. 13. 12:00:01] The next 5 occurrences of the 'ExchangeRateUpdater' schedule (Cron: '0 0 18 * * *') will be:
[2020. 09. 13. 12:00:01] 09/13/2020 15:00:00+02:00 (09/13/2020 13:00:00Z)
[2020. 09. 13. 12:00:01] 09/13/2020 18:00:00+02:00 (09/13/2020 16:00:00Z)
[2020. 09. 13. 12:00:01] 09/13/2020 15:30:00+02:00 (09/13/2020 13:30:00Z)
[2020. 09. 13. 12:00:01] 09/14/2020 18:00:00+02:00 (09/14/2020 16:00:00Z)
[2020. 09. 13. 12:00:01] 09/13/2020 16:00:00+02:00 (09/13/2020 14:00:00Z)
[2020. 09. 13. 12:00:01] 09/15/2020 18:00:00+02:00 (09/15/2020 16:00:00Z)
[2020. 09. 13. 12:00:01] 09/13/2020 16:30:00+02:00 (09/13/2020 14:30:00Z)
[2020. 09. 13. 12:00:01] 09/16/2020 18:00:00+02:00 (09/16/2020 16:00:00Z)
[2020. 09. 13. 12:00:01]
[2020. 09. 13. 12:00:01] 09/17/2020 18:00:00+02:00 (09/17/2020 16:00:00Z)
[2020. 09. 13. 12:00:01] The next 5 occurrences of the 'SnycPaymentRun' schedule (Cron: '0 30 7 * * *') will be:
[2020. 09. 13. 12:00:01] 09/14/2020 07:30:00+02:00 (09/14/2020 05:30:00Z)
[2020. 09. 13. 12:00:01] 09/15/2020 07:30:00+02:00 (09/15/2020 05:30:00Z)
[2020. 09. 13. 12:00:01] 09/16/2020 07:30:00+02:00 (09/16/2020 05:30:00Z)
[2020. 09. 13. 12:00:01] 09/17/2020 07:30:00+02:00 (09/17/2020 05:30:00Z)
[2020. 09. 13. 12:00:01] 09/18/2020 07:30:00+02:00 (09/18/2020 05:30:00Z)
```

To which trigger these log entities connected to? I can not tell.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.