MoreCore Platform
Functionality
Webjobs
MOR-PLN-061 Version 2 last review date: Sep, 2023

Webjobs

1. Webjobs Overview

ℹ️

This section provides a brief explanation of the WebJob component of CMMS, explains some terminology, and includes a list of the current WebJobs.

1.1. What is a WebJob

  • A WebJob is like an application service that can perform a task in the background. It does not include a user interface. It can be called to run at certain times, can be triggered, or can run continuously.

1.2. Explanation of ‘Type’

  • This field refers to how the WebJob is triggered to run.
    • Continuous: The WebJob runs all of the time.
    • Manual: The WebJob only operates when called upon, usually as actions are performed within CMMS.
    • Triggered: The WebJob has a set time that it is called to run, as specified by it’s Schedule field. The times that it runs are determined by it’s CRON expression. See this link for an explanation of CRON expressions.

1.3. Explanation of ‘Schedule’

  • The Schedule field is only applicable to Triggered WebJobs. As mentioned above the CRON expression dictates when the WebJob will run.

1.4. Table - WebJob List

WEBJOB NAMEFUNCTIONSTYPESCHEDULE
PMMS.WebJobs.ArchiveNotificationsAuto-archives Work Orders;Archives notifications in CosmosDB;Expires Quotes.Triggered0 30 14
PMMS.WebJobs.BulkAssignmentPerforms asynchronous user assignment (when triggered from portal)Performs asynchronous public holiday import (when triggered from portal) Completes Service Reports.generates the scheduled report (excel + pdf) generates the email and puts the email in a queue for email distribution. For immediate reports a queue message is put directly into this queue from the portal so the process is the same for both scheduled and immediate reports.ContinuousN/A
PMMS.WebJobs.EmailingDistributes emails including ReportsContinuousN/A
PMMS.WebJobs.LogOffRemindersGenerates log off reminders for users still logged on to WOs.Triggered0 */10 * * * *
PMMS.WebJobs.LogRemovalPeriodically cleans up audit logs from the database.Triggered0 0 8 15 21 * * *
PMMS.WebJobs.LogShippingPost-processes audit logs from service bus.ContinuousN/A
PMMS.WebJobs.NotificationDistributionDistributes generated notifications to users emailsmobile & to portal.Continuous
PMMS.WebJobs.RaiseQueuedWorkOrdersRaises scheduled WOs when triggered from the portal.ContinuousN/A
PMMS.WebJobs.RaiseScheduledWorkOrdersPeriodically raises scheduled WOs (when on schedule).Triggered0 30 20-20 * * *
PMMS.WebJobs.ScheduleWorkOrdersPeriodically schedules work orders for creation. Periodically adds Reports to the generation queue when they are due.Triggered0 0 10-20 * * *
PMMS.WebJobs.UpdateQualificationStatusUpdates qualification statuses.Triggered0 0 14 * * *
PMMS.WebJobs.WODeadlineNotificationsPeriodically triggers WO deadline notifications (due completion due attendance etc).Triggered0 0 * * * *
PMMS.WebJobs.ExcelImportFinishes up work orders imported via Excel generates PDF and triggers notifications/emails for those work orders.Triggered0 */15 * * * *
PMMS.WebJobs.XMLExportingExports marked work orders to JIWA.Triggered0 0 12 * * *
PMMS.WebJobs.XMLImportImports payments via FTP.Triggered0 0 12 * * *
PMMS.WebJobs.ApplicationInsightsProfiler3ContinuousN/A
PMMS.Webjobs.DaaSContinuousN/A