What This System Does
When railcars arrive at your facility, they’re marked as “INBOUND” in the system. Sometimes these inbound records are created but the physical railcar never actually arrives - maybe the shipment was cancelled, rerouted, or there was a data entry error. This automated cleanup system identifies and removes these ghost records based on how long they’ve been inactive.How We Determine What’s “Stale”
A piece of equipment is considered stale when it has been sitting in an INBOUND state with no recent activity. Activity includes:Waybill Updates
When billing paperwork is updated
Consist Assignments
When the equipment is added to a train or consist
If a railcar hasn’t had either of these activities for a certain number of days, it’s probably not actually at your facility.
Configurable Settings
These settings can be adjusted in Settings > Profile > Rail to control how the cleanup works.
System Control
Enable/Disable Cleanup
Enable/Disable Cleanup
Setting name:
Enable Stale Inventory CleanupWhat it controls: Turns the entire stale inventory cleanup system on or off.Options:- ✅ Enabled - System runs on schedule
- 🛑 Disabled - System is paused
Default Settings
These defaults apply to all carriers unless you set up carrier-specific overrides below.
Default Stale Threshold (in days)
Default Stale Threshold (in days)
Setting name:
default_stale_daysWhat it controls: How many days of inactivity before equipment is considered stale.Business consideration:- ⬆️ Higher number = More conservative, fewer deletions, but more clutter
- ⬇️ Lower number = More aggressive cleanup, but risk of deleting legitimate equipment
Default Daily Deletion Limit
Default Daily Deletion Limit
Setting name:
default_daily_velocityWhat it controls: The maximum number of stale equipment that can be automatically deleted per carrier in a single day.Business consideration:- ⬆️ Higher number = Faster cleanup, but higher risk if something goes wrong
- ⬇️ Lower number = Safer, but cleanup takes longer for large volumes
Carrier-Specific Overrides
Override default settings for individual carriers. Only configure carriers that need different settings.
How to Set Up Carrier Overrides
How to Set Up Carrier Overrides
Setting name:
Stale Inventory Cleanup OverridesWhat it controls: Custom settings for your carrier that override the defaults.How it works: When you configure these settings, they apply to your current carrier (identified by your carrier code). Each carrier can have their own custom thresholds and limits that override the system defaults.You can optionally set:- Custom stale threshold (in days) - overrides
default_stale_days - Custom daily deletion limit - overrides
default_daily_velocity
- 🚂 Short-line railroads might need longer grace periods (45+ days)
- 🏭 High-volume Class II carriers might want faster cleanup (15 days)
- 🔒 Carriers with complex operations might need lower velocity limits for safety
Safety Mechanisms
The system has multiple safeguards to prevent accidental data loss.
Daily Velocity Limits
Daily Velocity Limits
Only a limited number of deletions happen per day, per carrier.Any deletions beyond this threshold are:
- ✋ Not performed - equipment stays in system
- 📝 Logged - warnings written to system logs
- 📊 Tracked - metrics recorded for investigation
Transload Protection
Transload Protection
Equipment in active transload operations will NEVER be deleted, regardless of age.
State Protection
State Protection
Only INBOUND equipment is eligible for cleanup.Protected states:
- 🚂 OUTBOUND - leaving your facility
- 🟢 ONLINE - in active use
- 🗑️ Already deleted
What Actually Gets Deleted
1
Status is INBOUND
Equipment must be in an inbound state
2
No Recent Activity
No activity (waybill updates or consist assignments) for longer than the stale threshold
3
Not Deleted
Equipment is not already marked as deleted
4
No Active Transload
Not part of an active transload operation
5
Within Velocity Limit
Carrier hasn’t exceeded its daily deletion limit
If any of these conditions is false, the equipment stays in the system.
Monitoring & Alerts
The system tracks key metrics for monitoring:Deletions
Tracks how many items were successfully deleted per carrier per run.
Over-Velocity Items
Tracks how many items were flagged as stale but NOT deleted because they exceeded the daily velocity limit.
Example Scenario
- Scenario
- What Happens
- Next Steps
Settings:
- 📅 Default stale threshold: 30 days
- 🎯 Default daily velocity: 50 deletions
Recommendations for Configuration
- Conservative (Safer)
- Balanced (Recommended)
- Aggressive (Advanced)
Configuration:Best for:
- Getting started with the system
- Organizations with less confidence in data quality
- Risk-averse environments
- ✅ Minimizes risk of accidental deletions
- ✅ More time to catch data entry errors
- ⚠️ Slower cleanup of stale records
- ⚠️ More clutter in reports
Questions to Consider When Configuring
How quickly do your inbound shipments typically get processed?
How quickly do your inbound shipments typically get processed?
- ⚡ Fast (1-5 days) → Lower stale_days acceptable
- 🐌 Slow (2-4 weeks) → Higher stale_days needed
How accurate is your inbound data entry?
How accurate is your inbound data entry?
- ✅ Very accurate → Can use higher velocity
- ⚠️ Occasional errors → Keep velocity conservative
What's your tolerance for clutter vs. risk of deletion?
What's your tolerance for clutter vs. risk of deletion?
- 🧹 Prefer clean reports → Lower stale_days, higher velocity
- 🛡️ Very risk-averse → Higher stale_days, lower velocity
Do different carriers have different processing patterns?
Do different carriers have different processing patterns?
- ✅ Yes → Set up carrier-specific overrides
- ❌ No → Use defaults for everyone
Getting Help
If you notice unexpected behavior, follow these steps:
1
Check Metrics
Review system metrics for unusual patterns
2
Review Logs
Check system logs for warnings about over-velocity
3
Verify Settings
Confirm your configuration values in Settings > Profile > Rail
4
Contact Support
Reach out to the development team with specific carrier codes and date ranges