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 Change IP limit to 3-minute temporary disable 2026-04-06 16:58:43 +08:00
check_cpu_usage.go fix: handle CPU threshold error to prevent false notifications (#3603) 2025-12-12 14:29:27 +01:00
check_device_limit_job.go test(limit): add regression tests for reentry and disabled-limit unban 2026-04-06 10:49:11 +08:00
check_device_limit_job_test.go test(limit): add regression tests for reentry and disabled-limit unban 2026-04-06 10:49:11 +08:00
check_hash_storage.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00
check_xray_running_job.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00
clear_logs_job.go Refactor code and fix linter warnings (#3627) 2026-01-05 05:54:56 +01:00
ldap_sync_job.go update dependencies 2026-03-04 13:05:29 +01:00
periodic_traffic_reset_job.go fix: improve error handling in periodic traffic reset job (#3572) 2025-10-01 23:12:09 +02:00
stats_notify_job.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00
xray_traffic_job.go fix: resolve shared-mode traffic flush blocked by stale inboundId=0 delta 2026-04-24 02:56:23 +08:00