Skip to content

Commit 591e466

Browse files
authored
Merge pull request galaxyproject#21347 from Syrinx55/job-completion-email-citation
Add citation reminder to job completion email
2 parents 97452de + 585bec9 commit 591e466

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • lib/galaxy/job_execution/actions

lib/galaxy/job_execution/actions/post.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@ def execute(cls, app, sa_session, action, job, replacement_dict=None, final_job_
6262
to = job.get_user_email()
6363
subject = f"Galaxy job completion notification from history '{job.history.name}'"
6464
outdata = ",\n".join(ds.dataset.display_name() for ds in job.output_datasets)
65-
body = f"Your Galaxy job generating dataset(s):\n\n{outdata}\n\nis complete as of {datetime.datetime.now().strftime('%I:%M')}. Click the link below to access your data: \n{link}"
65+
body = (
66+
f"Your Galaxy job generating dataset(s):\n\n{outdata}\n\nis complete as of {datetime.datetime.now().strftime('%H:%M')}. "
67+
f"Click the link below to access your data: \n{link}\n\n"
68+
"Please remember to cite Galaxy using our primary publication "
69+
'(<a href="https://gxy.io/p/latest-nar">https://gxy.io/p/latest-nar</a>) '
70+
"in any publication based on your analysis."
71+
)
6672
if link_invocation:
6773
body += f"\n\nWorkflow Invocation Report:\n{link_invocation}"
6874
send_mail(app.config.email_from, to, subject, body, app.config)

0 commit comments

Comments
 (0)