Notifying Users of soft_limit cgroup

Hi, I’ve gotten the soft_limit working on pbs_cgroups, but i’d like to add an additional function to email the users when pbs_python notifies MoM that the cgroup has exceeded it’s limit.

What would be the best way to accomplish this? Is it possible to edit the pbs_cgroups.PY directly to add this, or would it be better to create an individual hook to do so?