Chris Lu and GitHub
7b8647e8bc
fix(shell): loop s3.lifecycle.run-shard so CI workflow stays alive ( #9476 )
...
The s3tests workflow (.github/workflows/s3tests.yml) backgrounds
`weed shell -c 's3.lifecycle.run-shard -shards 0-15 -s3 ... -refresh 2s'`
and then runs `kill -0 $pid` to confirm the worker stayed alive.
The PR-9475 restore ran dailyrun.Run once and exited cleanly — even
faster when no buckets had lifecycle rules yet ("nothing to run").
The aliveness check then failed and the s3tests job died with
"lifecycle worker died on startup". Caught on
https://github.com/seaweedfs/seaweedfs/actions/runs/25772523143/job/75698413401 .
Fix:
- -refresh now drives an inter-pass loop. cadence=0 (default) is
one-shot, matching the test/s3/lifecycle/ integration-test
invocation that omits -refresh and expects synchronous return.
cadence>0 (the CI case) keeps the command alive until -runtime
expires, running a fresh dailyrun.Run on every tick.
- Each iteration re-loads bucket configs via
scheduler.LoadCompileInputs so rules created mid-run (the s3tests
flow creates rules AFTER the worker starts) get picked up.
- The "no rules; nothing to run" early return is gone — the
command stays alive even with an empty initial snapshot, waiting
for tests to add rules.
- -dispatch, -checkpoint, -bootstrap-interval stay accepted-but-
ignored (legacy streaming flags).
2026-05-12 19:19:46 -07:00
..
2026-05-12 13:00:52 -07:00
2026-01-07 13:06:08 -08:00
2026-01-07 13:06:08 -08:00
2026-01-07 13:06:08 -08:00
2026-01-07 13:06:08 -08:00
2026-01-07 13:06:08 -08:00
2026-01-07 13:06:08 -08:00
2026-02-09 17:52:43 -08:00
2026-02-11 13:34:20 -08:00
2025-11-09 19:58:38 -08:00
2026-04-21 20:17:42 -07:00
2026-04-21 20:17:42 -07:00
2026-03-03 15:10:40 -08:00
2026-01-15 12:43:44 -08:00
2026-04-28 23:09:26 -07:00
2026-04-01 01:15:26 -07:00
2026-02-09 01:37:56 -08:00
2026-05-06 15:19:43 -07:00
2026-03-14 20:59:47 -07:00
2026-03-14 16:18:29 -07:00
2026-02-11 11:04:08 -08:00
2026-03-27 11:14:10 -07:00
2025-10-24 20:21:35 -07:00
2025-10-24 20:21:35 -07:00
2026-05-07 17:45:04 -07:00
2026-04-17 21:09:36 -07:00
2026-04-17 21:09:36 -07:00
2025-10-24 20:21:35 -07:00
2026-01-07 13:06:08 -08:00
2025-10-24 20:21:35 -07:00
2026-04-23 19:17:35 -07:00
2025-10-24 20:21:35 -07:00
2026-04-28 12:30:13 -07:00
2026-04-28 12:30:13 -07:00
2026-01-14 21:37:50 -08:00
2026-04-28 12:30:13 -07:00
2025-10-24 20:21:35 -07:00
2025-10-24 20:21:35 -07:00
2025-10-24 20:21:35 -07:00
2025-10-24 20:21:35 -07:00
2025-10-24 20:21:35 -07:00
2026-01-29 14:42:10 -08:00
2026-01-07 13:06:08 -08:00
2025-10-17 22:11:50 -07:00
2026-01-07 13:06:08 -08:00
2025-10-13 18:05:17 -07:00
2026-05-12 12:37:09 -07:00
2026-01-07 13:06:08 -08:00
2026-01-07 13:06:08 -08:00
2025-09-09 01:01:03 -07:00
2026-03-17 16:49:56 -07:00
2026-05-07 17:45:04 -07:00
2026-03-11 12:55:45 -07:00
2026-01-14 14:45:52 -08:00
2026-03-12 15:21:07 -07:00
2026-03-13 09:36:54 -07:00
2026-02-05 12:57:27 -08:00
2026-02-05 12:57:27 -08:00
2026-01-07 13:06:08 -08:00
2026-04-07 11:20:15 -07:00
2026-04-07 11:20:15 -07:00
2026-04-07 11:20:15 -07:00
2026-04-07 11:20:15 -07:00
2026-04-07 11:20:15 -07:00
2026-04-07 11:20:15 -07:00
2026-04-07 11:20:15 -07:00
2026-03-25 23:09:53 -07:00
2026-04-07 14:10:15 -07:00
2026-01-27 10:50:16 -08:00
2025-12-13 13:41:25 -08:00
2025-12-12 18:06:13 -08:00
2026-01-27 10:50:16 -08:00
2025-12-12 18:06:13 -08:00
2026-05-07 17:45:04 -07:00
2025-07-16 23:39:27 -07:00
2026-02-26 11:56:10 -08:00
2026-05-07 17:45:04 -07:00
2025-07-16 23:39:27 -07:00
2026-04-07 14:10:15 -07:00
2026-04-07 14:10:15 -07:00
2026-04-08 14:03:26 -07:00
2026-04-08 14:03:26 -07:00
2026-04-08 14:03:26 -07:00
2026-04-08 14:03:26 -07:00
2026-04-08 14:03:26 -07:00
2026-04-08 14:03:26 -07:00
2026-04-28 12:30:13 -07:00
2026-04-28 12:30:13 -07:00
2026-05-12 18:29:18 -07:00
2026-05-12 19:19:46 -07:00
2026-04-07 16:27:21 -07:00
2026-04-07 16:27:21 -07:00
2026-04-28 12:30:13 -07:00
2026-04-11 22:30:51 -07:00
2026-04-07 11:20:15 -07:00
2026-04-07 11:20:15 -07:00
2026-04-07 11:20:15 -07:00
2026-04-07 16:27:21 -07:00
2026-04-07 16:27:21 -07:00
2026-04-07 16:27:21 -07:00
2026-04-07 16:27:21 -07:00
2026-04-07 16:27:21 -07:00
2026-04-11 22:30:51 -07:00
2026-04-10 17:31:14 -07:00
2026-04-28 12:30:13 -07:00
2026-01-30 22:57:05 -08:00
2026-04-28 12:30:13 -07:00
2026-01-30 22:57:05 -08:00
2026-03-03 15:10:40 -08:00
2026-04-29 10:19:16 -07:00
2026-04-29 10:19:16 -07:00
2025-12-02 10:14:24 -08:00
2025-12-03 11:33:35 -08:00
2026-01-16 12:31:48 -08:00
2026-02-24 20:07:26 -08:00
2026-05-06 15:19:43 -07:00
2026-05-06 15:19:43 -07:00
2026-05-06 15:19:43 -07:00
2026-05-07 10:04:01 -07:00
2026-01-07 13:06:08 -08:00
2026-01-06 00:09:52 -08:00
2026-04-26 22:20:46 -07:00
2026-02-25 10:25:23 -08:00
2026-05-06 15:19:43 -07:00
2026-01-07 13:06:08 -08:00
2026-05-06 15:19:43 -07:00
2026-01-07 13:06:08 -08:00
2025-12-16 23:16:07 -08:00
2026-03-26 10:20:57 -07:00
2026-01-15 12:43:44 -08:00
2025-11-09 19:58:38 -08:00
2026-02-11 11:02:37 -08:00
2026-03-20 23:52:12 -07:00
2026-03-20 23:52:12 -07:00
2025-08-23 11:04:24 -07:00
2026-05-06 15:19:43 -07:00
2026-05-06 15:19:43 -07:00
2026-01-07 13:06:08 -08:00
2026-04-20 15:32:31 -07:00
2026-04-07 14:10:15 -07:00
2026-04-08 13:07:15 -07:00
2025-12-15 11:18:45 -08:00
2026-01-16 12:31:48 -08:00
2026-04-03 16:04:27 -07:00
2026-01-06 00:09:52 -08:00
2026-01-30 22:57:05 -08:00
2026-04-08 13:07:15 -07:00
2025-12-15 11:18:45 -08:00
2025-12-15 11:18:45 -08:00
2025-12-15 11:18:45 -08:00