Skip to content

Commit 5aeff29

Browse files
committed
Remove 5s timeout in tasks
It gets in the way while debugging and we can now force-restart frozen runtimes
1 parent de55465 commit 5aeff29

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

crates/ark/src/r_task.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ use std::sync::Arc;
99
use std::sync::Mutex;
1010
use std::time::Duration;
1111

12-
use crossbeam::channel::after;
1312
use crossbeam::channel::bounded;
1413
use crossbeam::channel::Sender;
15-
use crossbeam::select;
1614
use harp::exec::r_sandbox;
1715
use harp::test::R_TASK_BYPASS;
1816
use libr::R_Interactive;
@@ -102,19 +100,8 @@ where
102100
);
103101
};
104102

105-
// Now that we know the task has started, set up the timeout
106-
let timeout = std::time::Duration::from_secs(5);
107-
108103
// Block until task was completed or timed out
109-
let status = select! {
110-
recv(status_rx) -> status => status.unwrap(),
111-
recv(after(timeout)) -> _ => {
112-
let trace = std::backtrace::Backtrace::capture();
113-
panic!("Timeout while running task.\n\
114-
Backtrace of calling thread:\n\n\
115-
{trace}");
116-
},
117-
};
104+
let status = status_rx.recv().unwrap();
118105

119106
let RTaskStatus::Finished(status) = status else {
120107
let trace = std::backtrace::Backtrace::capture();

0 commit comments

Comments
 (0)