Author Topic: Send an email after completion  (Read 2566 times)

0 Members and 1 Guest are viewing this topic.

Offline Haozhu Wang

  • New QuantumATK user
  • *
  • Posts: 3
  • Country: us
  • Reputation: 1
    • View Profile
Send an email after completion
« on: May 18, 2016, 20:30 »
Hello all,

Does anyone have an idea about letting ATK+VNL send an email when the job is done?

Best,
Haozhu

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5577
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: Send an email after completion
« Reply #1 on: May 18, 2016, 22:12 »
If you are using the Job Manager to submit to a PBS cluster, it's already included in the parameters.

You could also put something in your actual script. I never tested it myself, but Python has email support via "smtplib", see https://docs.python.org/2/library/email-examples.html

Finally (but not really...) if you run - again via the Job Manager - on a local machine, you could modify the source code in site-packages/AddOns/JobManager/LocalPlugin/LocalJob.py - however you would need to know the API for the Task class, which we haven't really published :|

This is a cool idea, we'll see if it can be added for the local Job Manager in VNL 2017!