3x-ui/web/job
root 51f17922fa fix: resolve shared-mode traffic flush blocked by stale inboundId=0 delta
The traffic-pending.json file could contain a stale client traffic delta
with inboundId=0 (created before the InboundId resolution fix). When
flushToDatabase tried to INSERT this into client_traffics, it violated
the foreign key constraint fk_inbounds_client_stats, causing the entire
transaction to roll back and blocking ALL traffic from being written to
MariaDB.

- Skip deltas with InboundID==0 in flushToDatabase with a warning log
- Share a single TrafficPendingStore between XrayTrafficJob and the
  flush loop to eliminate a race condition from dual file instances
- Add test for zero InboundID skip behavior
2026-04-24 02:56:23 +08:00
..
check_client_ip_job.go
check_cpu_usage.go
check_device_limit_job.go
check_device_limit_job_test.go
check_hash_storage.go
check_xray_running_job.go
clear_logs_job.go
ldap_sync_job.go
periodic_traffic_reset_job.go
stats_notify_job.go
xray_traffic_job.go fix: resolve shared-mode traffic flush blocked by stale inboundId=0 delta 2026-04-24 02:56:23 +08:00