Knowledgebase:
Job owners and e-mail notifications
Posted by Andre Kuehnemund on 21 August 2019 16:10

P5 jobs can be owned by 'root', or by the user who is logged in to the P5 web interface.

If the owner of the job is the 'root' user (on windows UID of 500)
(root user is the owner of all jobs scheduled by the system itself
like for example backup/sync jobs that are started/scheduled on system start)
then email notifications are sent to ALL users having the requested event listed.

If the owner of the job is not the 'root' user
(this happens for interactive GUI users) then only this user
is notified, provided he has the requested event listed.

1. Jobs that are started automatically by the system are owned as root
(all jobs that are started/scheduled on system start are such jobs)

2. Jobs that are started on behalf of the user (from GUI) are owned by that user.
3. Jobs that are started on behalf of the user (from CLI) are owned by root.

The 3. is rather awkward but it needs to be so for backward compatibility.



Examples:

1. User 'admin' logged in to P5, created a new backup plan and scheduled a full backup for the next morning. He/she then stopped and restarted P5. Upon relaunching, P5 scheduls that job for the set execution date/time. When that job launches, it will be owned by 'root'. E-mail notifications will be sent out to all users who have the appropriate event types listed under their notification preferences.

2. User 'admin' is logged in to the P5 GUI and creates a new backup plan. User schedules the first full backup for one hour later. When that backup job starts an hour later, it will be owned by 'Admin' and only 'Admin' will receive e-mail notifications pertaining to that job (assuming the appropriate notification event types have been set).

3. User 'admin' is logged in to the P5 GUI and starts a manual backup/archive/sync job. That job will be owned by 'Admin' and only 'Admin' will receive e-mail notifications pertaining to that job (assuming the appropriate notification event types have been set).

4. While logged in to the OS as user 'admin', he/she launches a P5 job via the P5 CLI. Jobs launched via the P5 CLI will always be owned by 'root'.


(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).