We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55a5026 commit d519930Copy full SHA for d519930
1 file changed
src/storage/stream_catalog/manager.rs
@@ -498,7 +498,19 @@ pub fn restore_streaming_jobs_from_store() {
498
let total = definitions.len();
499
info!(count = total, "Restoring persisted streaming jobs");
500
501
- let rt = tokio::runtime::Handle::current();
+ let rt = match tokio::runtime::Builder::new_current_thread()
502
+ .enable_all()
503
+ .build()
504
+ {
505
+ Ok(rt) => rt,
506
+ Err(e) => {
507
+ warn!(
508
+ error = %e,
509
+ "Failed to create Tokio runtime for streaming job restore"
510
+ );
511
+ return;
512
+ }
513
+ };
514
let mut restored = 0usize;
515
let mut failed = 0usize;
516
0 commit comments