File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
oc4ids_datastore_pipeline Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,14 @@ def _send_email(errors: list[dict[str, str]]) -> None:
21
21
context = ssl .create_default_context ()
22
22
server .starttls (context = context )
23
23
message = MIMEMultipart ()
24
- message ["Subject" ] = "Errors in OC4IDS Datastore Pipeline run"
24
+ current_time = datetime .datetime .now (datetime .UTC )
25
+ message ["Subject" ] = f"Errors in OC4IDS Datastore Pipeline run: { current_time } "
25
26
message ["From" ] = SENDER_EMAIL
26
27
message ["To" ] = RECEIVER_EMAIL
27
28
28
29
html = f"""\
29
30
<h1>Errors in OC4IDS Datastore Pipeline run</h1>
30
- <p>The pipeline completed at { datetime . datetime . now ( datetime . UTC ) } .</p>
31
+ <p>The pipeline completed at { current_time } .</p>
31
32
<p>Please see errors for each dataset below:</p>
32
33
{ "" .join ([
33
34
f"""
You can’t perform that action at this time.
0 commit comments