HF RL Explorer

The idle seconds() function raises a TypeError when called with no jobs scheduled. This happens because next…

The idle seconds() function raises a TypeError when called with no jobs scheduled. This happens because next…: a task in repo2rlenv-swe-gen (Harbor dataset). The fix should make idle seconds (both the Scheduler.idle seconds property and the module-level schedule.idle seconds() function) return…

The task

The fix should make `idle_seconds` (both the `Scheduler.idle_seconds` property and the module-level `schedule.idle_seconds()` function) return `None` when there are no scheduled jobs (i.e., when `next_run` is `None`), instead of raising a `TypeError`.

Part of FineEnvs/repo2rlenv-swe-gen.