Skip to main content
The Job Scheduler manages automated job creation from compliance schedules, recurring templates, quotes, and purchase orders.

Overview

Flow: Trigger → Job Created → Assignment → Scheduling → Execution → Completion Key Files:
  • packages/workbooks-jobs/src/workflows/job-progress-tracker.ts
  • apps/workbooks-api/src/trpc/routers/workbooks-jobs.ts
  • apps/workbooks-api/src/trpc/routers/compliance-workflow.ts

Job Status States

Workflow Diagram

Trigger Sources

Compliance Schedule

Auto-generated from asset compliance requirements (lead time before due date)

Recurring Template

Weekly, monthly, or custom recurring job patterns

Quote Accepted

Automatic job creation when customer accepts quote

Purchase Order

Direct conversion from approved PO

Assignment Phase

Automatic Technician Assignment

Jobs can be auto-assigned based on:

Scheduling Phase

1

Date/Time Selection

Choose scheduled date and time window:
  • All day
  • Morning (8am-12pm)
  • Afternoon (12pm-5pm)
  • Specific time slot
2

Calendar Sync

Job added to:
  • Technician’s calendar
  • Team scheduling board
  • Customer portal (if enabled)
3

Notifications

Automatic notifications sent:
  • Technician: Job assignment
  • Customer: Appointment confirmation
  • Admin: Scheduling summary

Execution Tracking

Job Progress

Real-time Updates

Status Transitions

Compliance Integration

Jobs created from compliance schedules include:
When job completes:
  1. Compliance schedule marked complete
  2. Next schedule calculated
  3. Asset compliance status updated

API Endpoints

Customer Lifecycle

Job creation from quotes

Asset Compliance

Compliance-driven job scheduling