schrodinger.seam.testing.stu_tests.worker_idle_expiration module

Test that idle workers eventually time out and shut down.

Runs a 2-stage persistent worker pipeline where workers spawned in stage 1 become idle after stage 1 completes. With a shortened idle expiration, the periodic timer should close the idle workers before or during stage 2.

Usage:

$SCHRODINGER/run python3 -m schrodinger.seam.testing.stu_tests.worker_idle_expiration
schrodinger.seam.testing.stu_tests.worker_idle_expiration.main()