implementing a job manager for maintenance scripts