Skip to content

Commit c0a25b4

Browse files
author
Mark Saroufim
committed
Revert signal-based timeout changes in modal launcher
Keep only the container-level timeout in modal_runner_archs.py
1 parent d338ab0 commit c0a25b4

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/libkernelbot/launchers/modal.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,9 @@ async def run_submission(
3030

3131
await status.push("⏳ Waiting for Modal run to finish...")
3232

33-
# Use task-specific timeout + 60s buffer for signal-based timeout
34-
# This catches most hangs; container timeout is the fallback for hung GPUs
35-
task_timeout = config.get("ranked_timeout", 180)
36-
signal_timeout = task_timeout + 60
37-
3833
result = await loop.run_in_executor(
3934
None,
40-
lambda: modal.Function.from_name("discord-bot-runner", func_name).remote(
41-
config=config, timeout_seconds=signal_timeout
42-
),
35+
lambda: modal.Function.from_name("discord-bot-runner", func_name).remote(config=config),
4336
)
4437

4538
await status.update("✅ Waiting for modal run to finish... Done")

0 commit comments

Comments
 (0)