Muin is in private beta.Watch the public release announcement —talk to us.
Falaah Falaah AI

Workflow Settings

Configure business hours, holiday calendars, SLA deadlines, retry policies, and backlog monitoring for your organization's automated workflows.

Workflow Settings let you customize how automated workflows behave for your organization. Configure business hours and holiday calendars to control when workflows run, set up SLA tracking with escalation deadlines, define retry policies for failed actions, and monitor workflow backlogs to catch bottlenecks early.

Accessing Workflow Settings

Navigate to SettingsWorkflow Settings to configure these options. Admin or Owner role required.


Holiday Calendar Settings

Control when workflows consider “business days” for scheduling and deadlines.

Calendar Types

CalendarDescriptionBest For
US FederalUS federal holidays (10 days/year)US-based organizations
US BankBanking holidays (12 days/year)Financial services
CustomOnly your specified datesInternational or unique schedules

Configuration Options

SettingDescriptionDefault
EnabledTurn holiday handling on/offOn
Calendar TypeBase calendar to useUS Federal
Custom HolidaysAdditional dates to treat as holidaysEmpty
Skip HolidaysSkip workflow deadlines on holidaysOn
Skip WeekendsSkip Saturday/SundayOn

Adding Custom Holidays

  1. Navigate to SettingsWorkflow Settings
  2. In the Holiday Settings section, click Add Holiday
  3. Enter:
    • Date: The holiday date
    • Name: Description (e.g., “Company Retreat Day”)
  4. Click Save

Custom holidays supplement the base calendar—you don’t need to re-add federal holidays.

How Holidays Affect Workflows

When a workflow action is scheduled to occur on a holiday or weekend:

Scheduled: Friday 5 PM → Review due Monday
If Monday is a holiday → Review due Tuesday

Scheduled: Invoice processing every day
Skip weekends ON → Processes Mon-Fri only
Skip holidays ON → Skips federal holidays

Common Scenarios

Financial services: Use “US Bank” calendar to align with bank processing days.

International team: Use “Custom” calendar with only your office closures.

24/7 operations: Disable “Skip Holidays” and “Skip Weekends” for continuous processing.


Business Hours Settings

Define your organization’s working hours so workflow deadlines, SLA timers, and escalations respect your actual business schedule.

Configuration Options

SettingDescriptionDefault
Start TimeBusiness day start9:00 AM
End TimeBusiness day end5:00 PM
Working DaysDays of the week considered business daysMonday-Friday
TimezoneOrganization timezoneUS/Eastern

Business hours work with holiday calendars — SLA timers and escalation deadlines only count time during business hours on non-holiday working days.


SLA Tracking Settings

Set per-state SLA deadlines to track how long workflow items spend in each stage and escalate when deadlines are missed.

Configuration Options

SettingDescriptionDefault
SLA DeadlineMaximum time allowed in a workflow stateNone
Warning ThresholdPercentage of SLA at which to warn80%
Escalation ActionWhat happens when SLA is breachedNotify owner
Business Hours OnlyCount only business hours toward SLAOn

How SLA Tracking Works

Invoice enters "Pending Approval" state

SLA: 2 business days

After 1.6 business days (80%) → Warning sent to approver

After 2 business days → Escalation triggers (reassign, notify manager, etc.)

SLA deadlines respect business hours and holiday settings — an item entering “Pending Approval” at 4 PM Friday with a 4-hour SLA doesn’t breach until 1 PM Monday.


Retry Policy Settings

Configure how workflows handle temporary failures and retry failed actions.

Backoff Strategies

StrategyBehaviorBest For
ExponentialDelays increase exponentially (30s → 60s → 120s)API rate limits, external services
LinearFixed increase between retries (30s → 60s → 90s)Predictable recovery times
NoneSame delay every retrySimple failures

Configuration Options

SettingDescriptionDefault
Max RetriesMaximum retry attempts3
Retry DelayInitial delay before first retry60 seconds
Backoff StrategyHow delay increasesExponential
Backoff MultiplierFactor for exponential/linear increase2.0x
Max DelayMaximum wait between retries1 hour
Retry on ErrorsWhich error types trigger retrytimeout, rate_limit, temporary

Error Types

Error TypeDescriptionAuto-Retry
timeoutRequest timed outYes
rate_limitToo many requestsYes (with backoff)
temporaryTemporary service issueYes
networkConnection problemsYes
processingProcessing failedOptional
validationInvalid dataNo
permissionAccess deniedNo

Example Configurations

High reliability (financial):

Max Retries: 5
Retry Delay: 30 seconds
Backoff Strategy: Exponential
Backoff Multiplier: 1.5x
Max Delay: 30 minutes
Retry on: timeout, rate_limit, temporary, network

Quick fail (real-time):

Max Retries: 2
Retry Delay: 10 seconds
Backoff Strategy: None
Max Delay: 10 seconds
Retry on: timeout only

Conservative (sensitive operations):

Max Retries: 2
Retry Delay: 5 minutes
Backoff Strategy: None
Max Delay: 5 minutes
Retry on: temporary only

How Retries Work

Action fails with "timeout" error

Wait 60 seconds (initial delay)

Retry #1 → fails again

Wait 120 seconds (60 × 2.0 multiplier)

Retry #2 → fails again

Wait 240 seconds (120 × 2.0 multiplier)

Retry #3 → succeeds! ✓

If all retries fail, the workflow enters “Failed” state and can be manually retried or the error investigated.


Backlog Monitoring Settings

Monitor workflow queue health and get alerts when processing falls behind.

Why Monitor Backlog?

Large backlogs indicate:

  • Processing bottlenecks
  • Integration issues
  • Capacity problems
  • Configuration errors

Early alerts prevent:

  • Missed deadlines
  • Customer delays
  • Compliance issues
  • Data staleness

Configuration Options

SettingDescriptionDefault
EnabledTurn backlog monitoring on/offOn
ThresholdItems pending before alerting100
Alert ChannelsWhere to send alertsEmail
Custom EmailsAdditional recipientsEmpty
Webhook URLExternal service webhookNone
Check IntervalHow often to check15 minutes
Alert CooldownMinimum time between alerts60 minutes

Alert Channels

ChannelDescriptionSetup
EmailEmail to adminsAutomatic
Custom EmailsAdditional recipientsAdd addresses
WebhookPOST to external URLProvide webhook URL

Webhook Payload

When using webhook alerting, Muin sends:

{
  "alert_type": "workflow_backlog",
  "tenant_id": "your-tenant-id",
  "current_count": 150,
  "threshold": 100,
  "severity": "warning",
  "oldest_pending_at": "2025-01-15T10:30:00Z",
  "timestamp": "2025-01-15T12:00:00Z"
}

Severity Levels

SeverityConditionRecommended Action
InfoCount at 75-90% of thresholdMonitor
WarningCount at 90-100% of thresholdInvestigate
CriticalCount exceeds thresholdImmediate action

Best Practices

Set appropriate thresholds:

  • Low volume organizations: 25-50 items
  • Medium volume: 50-100 items
  • High volume: 100-500 items

Use multiple channels:

  • Email for all alerts
  • Webhook for critical systems (PagerDuty, Slack)

Tune check intervals:

  • Real-time critical: 5 minutes
  • Standard operations: 15 minutes
  • Background processing: 30-60 minutes

Viewing Backlog Status

The Workflow Settings page shows current backlog status:

StatusIndicatorMeaning
HealthyGreenBelow threshold
WarningYellowApproaching threshold
CriticalRedExceeds threshold

Information displayed:

  • Current pending count
  • Configured threshold
  • Oldest pending item age
  • Last alert sent time

Applying Settings

Immediate Effect

Changes to settings take effect immediately for new workflow actions:

  • Holiday settings affect scheduling from this point forward
  • Retry settings apply to new failures
  • Backlog alerts use new thresholds

Existing Items

In-progress workflows continue with their original settings. To apply new settings:

  • Retry policy: Cancel and restart workflow
  • Holiday settings: Reschedule pending actions

Permissions

ActionRequired Role
View settingsAdmin, Owner
Modify settingsAdmin, Owner
Receive backlog alertsAdmin, Owner (auto), Custom emails

Troubleshooting

Workflows Not Skipping Holidays

  1. Verify Holiday Settings are Enabled
  2. Check the holiday date is correct
  3. Confirm the workflow uses business day scheduling
  4. Manual “Run Now” actions bypass holiday settings

Too Many Retries

  1. Review which error types are enabled
  2. Consider reducing max retries
  3. Check if errors are truly temporary
  4. Some errors (validation, permission) should not retry

Backlog Alerts Not Sending

  1. Verify Backlog Monitoring is Enabled
  2. Check current count exceeds threshold
  3. Verify email addresses/webhook URL
  4. Check cooldown hasn’t prevented recent alert

Alert Fatigue

  1. Increase threshold to realistic level
  2. Extend alert cooldown period
  3. Use severity filtering in your monitoring system
  4. Fix root cause of backlog growth