<aside> 🔁 Synced from GitHub #018a047fa5fd. Edit in the paidhr-system-docs repository, not here: changes made in Notion are overwritten.
</aside>
A lot of PaidHR happens when nobody is clicking. If something "didn't happen", check here first: the job may not have run, or may have failed for every company at once.
All times are Africa/Lagos (WAT) unless stated.
Background workers live in Core.Backend.Application/BackgroundServices and are registered in Program.cs. Most wake every 30 seconds, check a cron expression, and then sign in as each organisation (using the identity service) to run that organisation's work in its own tenant.
| Worker | When | What it does |
|---|---|---|
DailyTaskService |
02:01 daily | Runs spRunDailyProcedures in every tenant and membership: leave accrual, exits taking effect (spProcessEmployeeExit, spProcessUserExit) and other routine tasks. Guarded by DailyJobLogs so it runs once a day. Reports to Google Chat. The same run also calls ExitNotificationService.RunDailyAsync, which sends exit clearance reminders, escalations for overdue clearance items and exit-date notices for each open exit case |
LeaveAllowanceAutoPayService |
01:30 daily | Pays released leave allowance claims to payroll for every active company, five companies at a time, and reconciles pending claims |
ReportJobWorkerService |
continuous (polls every 2 s) | Runs queued reports: two jobs at a time, claimed atomically, 20-minute timeout per job, 2 attempts, results kept 7 days (stale ones purged hourly) |
ProcessQualifiedPaymentWorkerService |
every few minutes | Puts approved payment-schedule items on the payout SQS queue and marks them queued |
PaymentAcknowledgementConsumerService |
continuous | Reads payout results back from wallet-service |
PaymentSynchronizationService |
every 5 min | Syncs staged payment items (PaymentScheduleItemStaging) with their final status |
EmployerPaymentNotificationService |
00:30 daily | Tells employers about payments |
BeneficiaryPaymentNotificationService |
scheduled | Tells employees about payments |
EwaEmployeeSynchronizationService |
hourly | Sends new or changed employees to ewa-service |
EwaWithdrawalSynchronizationService |
every 5 min | Pulls EWA withdrawals into core-backend so payroll can recover them |
DataSynchronizationService |
scheduled | Creates employee wallets, syncs EWA employees and CRM contacts (the BI data sync for people, payroll, requests, contractors and payments is switched off since the move to the Analytics database) |
BankSynchronizationService |
03:00 Mon–Fri | Refreshes the bank list from wallet-service (misc/banks) |
BulkImportWorkerService |
polling | Processes queued bulk uploads (BulkImportJob). Can be switched off by configuration; stale jobs are re-queued |
CelebrationCardService |
08:00 daily | Birthday and work-anniversary cards |
CompanyDeletionBackgroundService |
configurable | Cleans up deleted companies |
Fusion*SynchronizationService (5) |
every 5 min | Oracle Fusion feeds: employees, compensation history, reimbursements, action logs |
Integration*SynchronizationService (7) |
every 5 min | Generic HR integration feeds: employees, status, compensation, custom fields, leave, payroll changes |
LeavePlanningDeadlineReminderService |
09:50 daily | Leave-planning deadline reminders |
Performance V2 (ReviewCycleAutoCreation, ReviewPeriodAutoLaunch, ReviewPeriodAssignmentGeneration, ReviewPeriodCreation/DeadlineAnnouncement, PeerNomination*, ManagerReviewAssignmentAnnouncement, BscScoreRecalculationWorker, DeleteReviewPeriodService) |
scheduled | Create cycles and periods, launch them, generate assignments, send reminders, recalculate scores |
SurveyV2WorkerService |
every 5 min (configurable 1–60 min) | Opens/closes surveys on schedule, finds new automatic-survey recipients, sends invitation/reminder emails. Only runs in an environment whose SurveyV2Enabled setting is true (off when missing); the switch is per environment, not per company. In production (any environment other than staging, development or local) it only processes PaidHR's own account and skips every other company |
🛑 One bad row can stop a job for everyone
spUpdateEmployeeLeaveBalance(inside the daily procedures) loops every leave policy in a tenant inside one transaction. One bad policy row stops accrual for every company in that tenant, without any visible error. See leave.
| Job | When | What it does |
|---|---|---|
creditEarningsWallet → processDailyEarnings |
12:00 daily | Credits each eligible employee's earnings wallet with today's earned amount |
resetWallets → resetWalletsOnFirstDayOfMonth |
02:00 daily (acts on the 1st) | Resets earnings wallets for the new month |
sendWeeklyEarningsMail |
Fridays 12:15 | "Here's what you've earned" email |
verifyProcessingWithdrawals |
every 10 min | Checks withdrawals still processing with the payout provider |
countPendingWithdrawalSyncs |
18:00 daily | Alerts how many withdrawals are not yet synced to core-backend |
syncSendgridContacts |
every 30 min | Mailing-list sync |
runAbsentRecordCron |
switched off (was 10:00 daily) | Would create absent records for missed shifts and raise them to payroll. Its schedule is commented out, so nothing creates absent records automatically. It can still be run by hand on non-production environments only |
runShiftReminderCron |
every 5 min | Shift start/end reminders |
runTimesheetPayrollCron |
12:30 daily | Prepares approved timesheets (overtime, shift pay) for payroll |
| Warehouse sync | 01:00 daily | Sends withdrawals to the data warehouse |
| Data-integration status | every 1–2 min | Tracks customer data-feed sync status |
Loan sync (syncLoanRepayments, syncLoanFeedbacks, syncLoanAtRisks) |
02:00/12:00, 03:00, 04:00/13:00 | Lending-partner loan status |
sendEligibilityEmail |
00:05 daily | Loan eligibility emails |
Hiring maintenance (tick, reportHealth) |
every 1 / 5 min | Hiring outbox, AI-interview housekeeping |
purgeExpiredTemporaryFiles |
midnight | Temporary file cleanup |
| Job | When | What it does |
|---|---|---|
retryStuckCardRequests |
every minute | Retries stuck card creation/funding |
updatePendingTransactions |
every 3 min | Re-queries pending transfers with the provider |
requeuePayoutStatusQueries |
every minute | Re-queues lost status-query jobs for individual-wallet payouts |
processPendingReversals |
every 5 min | Reverses failed debits |
requeueStalePendingPayments |
every 10 min | Re-queues payments stuck in pending |
pollExternalDisbursements |
every 10 min | Status of external disbursements |
resolvePendingAccountNames |
every 10 min | Account-name lookups |
getFlaggedPaymentSummary |
every 15 min | Flags unusual payments |
rotateAuthKey |
hourly | Rotates provider auth keys |
fixWalletTransactions |
01:00 daily | Repairs inconsistent transaction records |
sendWalletTransactionsToDataWarehouse |
02:00 daily | Warehouse sync |
getProviderBalanceSummaries |
08:00 daily | Provider float balances to Google Chat |
Each terminal polls GET /v1/terminals/changes every 5 seconds for people and settings changes. A nightly 01:30 job clears credentials of people who have left. See terminals.