An image forming apparatus used by a plurality of users, comprising:
- a printing unit configured to:
- execute a print job for printing an image on paper based on print data;
- and
- suspend, when an error occurs during execution of the print job, the print job until the error is eliminated;
- an ejection tray configured to receive ejection of printed paper on which the image has been printed by the printing unit;
- an ejection detection unit configured to detect whether or not the printed paper has been taken away from the ejection tray based on an output from an ejection detection sensor configured to change the output depending on whether the printed paper is present or absent on the ejection tray;
- a communication unit configured to:
- receive the print data;
- transmit a job completion notification indicating completion of the print job to a data transmission source that is a transmission source of the print data;
- and
- transmit, when the error occurs during the execution of the print job, an error occurrence notification to the data transmission source;
- and
- a storage unit configured to store, for each of the plurality of users, a take-away time which is a time set based on a time that is required after the communication unit transmits the job completion notification to the data transmission source until the ejection detection unit detects that the printed paper has been taken away and which is a time required after a user of the data transmission source receives the job completion notification until the user takes away the printed paper, wherein:
- the communication unit is further configured to, when the error occurs during the execution of the print job:
- set a user who has a shorter take-away time than the user of the data transmission source as an additional notification destination candidate;
- set any one of the users among the additional notification destination candidates as an additional notification destination;
- and
- transmit the error occurrence notification to the additional notification destination as well as to the data transmission source;
- and
- the communication unit is further configured to, when the take-away time of the user of the additional notification destination has elapsed since the error occurrence notification is transmitted to the additional notification destination without an error elimination operation, which is an operation for eliminating the error, being conducted:
- set a user who has a shorter take-away time than a time obtained by subtracting the take-away time of the user of the additional notification destination from the take-away time of the user of the data transmission source and who is not set as the additional notification destination, as the additional notification destination candidate;
- set any one of the users among the additional notification destination candidates as a new additional notification destination;
- and
- transmit the error occurrence notification to the new additional notification destination.