email notification not working
Hello @dbeltran and @bdepaula,
Autosubmit Version
v4.1.9 at the hub
Expid affected(If applicable)
a85o
Which task has issues? Where is the log(If applicable)
-
Log_Path: log path
/esarchive/autosubmit/a85o/tmp/ASLOGS/20241209_110131_run.log
Summary
I am trying to use the email notification following the steps described at autosubmit documentation email notifications.
In my case, I wrote the mail configuration at /esarchive/autosubmit/a85o/proj/git_project/conf/expdef.yml and modified the joblists (jobs_daily.yml, jobs_monthly.yml, jobs_traffic.yml; they are at the same folder as expdef) adding the variable: NOTIFY_ON: FAILED COMPLETED
.
At /esarchive/autosubmit/a85o/conf/main.yml you can select which joblist you want to use.
My mail configuration looks like this (/esarchive/autosubmit/a85o/proj/git_project/conf/expdef.yml):
mail:
# Enable mail notifications for remote_failures
# Default:True
NOTIFY_ON_REMOTE_FAIL: True
# Enable mail notifications
# Default: False
NOTIFICATIONS: True
# Mail address where notifications will be received
TO: laura.herrero@bsc.es
Job example (/esarchive/autosubmit/a85o/proj/git_project/conf/jobs_daily.yml):
DOWNLOAD_ENTSOE_unit:
FILE: templates/download.sh,templates/configuration_files/ENTSOE_unit.yml
PLATFORM: local
FILE_TO_DOWNLOAD: ENTSOE_unit
RUNNING: chunk
DOWNLOAD_FLAG: "True"
ORIGINAL_FILE_PATH_GENERAL: "%INPUTS.ENTSOE_UNIT.ORIGINAL_FILE_PATH.GENERAL%"
ORIGINAL_FILE_PATH_SPAIN: "%INPUTS.ENTSOE_UNIT.ORIGINAL_FILE_PATH.SPAIN%"
DOWNLOAD_DELAY: "%INPUTS.ENTSOE_UNIT.DELAY%"
NOTIFY_ON: FAILED COMPLETED
I also tried this by adding the mail configuration at a new autosubmit_cxxx.yml file, but it did not work.
Relevant logs and/or screenshots(if applicable)
2024-12-09 11:03:07,912 Successful check job command: nohup kill -0 644286 > /dev/null 2>&1; echo $?
2024-12-09 11:03:07,912 Job a85o_2024120900_fc0_1_DOWNLOAD_ENTSOE_UNIT is RUNNING
2024-12-09 11:03:08,224 Traceback (most recent call last):
File "/shared/earth/easybuild/rocky/8.4/x86_64/software/autosubmit/4.1.9-foss-2021b-Python-3.9.6/lib/python3.9/site-packages/autosubmit-4.1.9-py3.9.egg/EGG-INFO/scripts/autosubmit", line 59, in main
return_value = Autosubmit.parse_args()
File "/shared/earth/easybuild/rocky/8.4/x86_64/software/autosubmit/4.1.9-foss-2021b-Python-3.9.6/lib/python3.9/site-packages/autosubmit-4.1.9-py3.9.egg/autosubmit/autosubmit.py", line 707, in parse_args
return Autosubmit.run_experiment(args.expid, args.notransitive,args.start_time,args.start_after, args.run_only_members, args.profile)
File "/shared/earth/easybuild/rocky/8.4/x86_64/software/autosubmit/4.1.9-foss-2021b-Python-3.9.6/lib/python3.9/site-packages/autosubmit-4.1.9-py3.9.egg/autosubmit/autosubmit.py", line 2222, in run_experiment
Autosubmit.job_notify(as_conf,expid,job,job_prev_status,job_changes_tracker)
File "/shared/earth/easybuild/rocky/8.4/x86_64/software/autosubmit/4.1.9-foss-2021b-Python-3.9.6/lib/python3.9/site-packages/autosubmit-4.1.9-py3.9.egg/autosubmit/autosubmit.py", line 1793, in job_notify
if Status.VALUE_TO_KEY[job.status] in job.notify_on:
AttributeError: 'Job' object has no attribute 'notify_on'
[CRITICAL] 2024-12-09 11:03:08,226 A not admitted configuration or error in the code has happened: 'Job' object has no attribute 'notify_on'.
Please report it to Autosubmit Developers through Git
2024-12-09 11:03:08,226 More info at https://autosubmit.readthedocs.io/en/master/troubleshooting/error-codes.html
Any other relevant information(if applicable)
() cc @agayayav