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.tsapps/workbooks-api/src/trpc/routers/workbooks-jobs.tsapps/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
- Auto-Assignment
- Manual Assignment
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:- Compliance schedule marked complete
- Next schedule calculated
- Asset compliance status updated
API Endpoints
Related Documentation
Customer Lifecycle
Job creation from quotes
Asset Compliance
Compliance-driven job scheduling