Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

email notifications #7

Open
mcacciagrano opened this issue Jul 14, 2021 · 0 comments
Open

email notifications #7

mcacciagrano opened this issue Jul 14, 2021 · 0 comments

Comments

@mcacciagrano
Copy link

From the p4transfer script, we are getting three sets of notifications

  • Regular update , configured with daily frequency
  • transfer summary report, configured with weekly frequency
  • errors, configured with a 15 minutes frequency

The errors notifications work pretty well, while I have questions about the other two.

The regular update email body sends something like the below, 50 times:
2021-07-14 08:51:49,787:P4Transfer:INFO: Transferring 0 changes
2021-07-14 08:52:49,829:P4Transfer:INFO: Sleeping for 1 minutes
(...)
2021-07-14 09:15:56,121:P4Transfer:INFO: Transferring 0 changes
2021-07-14 09:16:56,164:P4Transfer:INFO: Sleeping for 1 minutes

which seem to be last 50 log instances until the time of the mail is sent (9:16AM in this case)
Would it be possible to get only the log lines of the last 24 hours ( or matching the email frequency) which have only significant values.
In any case, what is the configuration that would switch off the regular update email ?

The transfer summary report email body, received on Monday 12th, has this heading:

Changes transferred since 2021/07/12:09:15:17

It includes the size of transfers since 2021/04/14 , until 2021/07/09
It seems that it always reports from the same date the transfer was started, until the last recorded transfer before the email is sent.
The email body is then going to grow indefinitely.
Also, the heading is giving an incorrect information.

I would like to configure the Summary report to send information covering the time frame of the last week (or the configured frequency of the summary report email), and adjust the heading of the email body to match the time frame.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant