Hi Gagan,
notify_user should just need
user@uid-domain as a string. I am not too proficient with python so I am unsure how
"$(emailid)" work, but f"{emailid}" should work. You can also check to see if this is being set correctly by running
condor_history ClusterId -af NotifyUser
Hope this helps,
Cole Bollig
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of gagan tiwari <gagan.tiwari@xxxxxxxxxxxxxxxxxx>
Sent: Friday, January 6, 2023 4:39 AM To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx> Subject: [HTCondor-users] Notification :- setting "notify_user" as variable not working Hi Guys,
I need condor to send email notifications to the job owner.
I have captured the user's email id in a variable and passed that in the submit file but condor doesn't seem to be using it and sending e-mail do
owner@uid-domain which is default.
I am using following python codes to achieve this :-
def submit_jobs():
emailid = get_email() ( capturing user email as str ) emailid = emailid.split() ( capturing user email as list )
job = htcondor.Submit({
"executable": "$(bin)", "arguments": "$(config)", "output": "$(outfile)", "error": "$(errfile)", "log": "jobstatus.log", "request_cpus": "1", "request_memory": "2GB", "request_disk": "4MB", "RunAsOwner": "True", "notification": "Always", "notify_user": "$(emailid)", "should_transfer_files": "No", }) I tried passing user email id both as str and as list but nothing worked.
Please let me know what I am missing here.
Thanks,
Gagan
|