Added email_list field to front end. On job completion emails on this
list will be notified of the completion. Also the function send_email
in manage_db.py adds the ability to put a delimited email list in
global_settings.py rather than just a single email.
Signed-off-by: Bryce Boe <bboe@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2173 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/rpc_interface.py b/frontend/afe/rpc_interface.py
index 279ca15..c471a68 100644
--- a/frontend/afe/rpc_interface.py
+++ b/frontend/afe/rpc_interface.py
@@ -271,7 +271,7 @@
def create_job(name, priority, control_file, control_type, timeout=None,
is_synchronous=None, hosts=None, meta_hosts=None,
- run_verify=True, one_time_hosts=None):
+ run_verify=True, one_time_hosts=None, email_list=''):
"""\
Create and enqueue a job.
@@ -284,6 +284,7 @@
one host will be chosen from that label to run the job
on.
timeout: hours until job times out
+ email_list: string containing emails to mail when the job is done
"""
if timeout is None:
@@ -343,7 +344,8 @@
synch_type=synch_type,
hosts=host_objects,
timeout=timeout,
- run_verify=run_verify)
+ run_verify=run_verify,
+ email_list=email_list.strip())
job.queue(host_objects)
return job.id