Skip to content

Commit 5dc7404

Browse files
committed
Update Core
1 parent 5e1d999 commit 5dc7404

File tree

4 files changed

+10
-20
lines changed

4 files changed

+10
-20
lines changed

temporalio/bridge/Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

temporalio/bridge/Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ crate-type = ["cdylib"]
1919
anyhow = "1.0"
2020
async-trait = "0.1"
2121
futures = "0.3"
22-
log = "0.4"
2322
prost = "0.13"
2423
pyo3 = { version = "0.25", features = [
2524
"extension-module",
@@ -28,14 +27,14 @@ pyo3 = { version = "0.25", features = [
2827
] }
2928
pyo3-async-runtimes = { version = "0.25", features = ["tokio-runtime"] }
3029
pythonize = "0.25"
31-
temporal-client = { version = "0.1.0", path = "../../../sdk-core/client" }
32-
temporal-sdk-core = { version = "0.1.0", path = "../../../sdk-core/core", features = [
30+
temporal-client = { version = "0.1.0", path = "./sdk-core/client" }
31+
temporal-sdk-core = { version = "0.1.0", path = "./sdk-core/core", features = [
3332
"ephemeral-server",
3433
] }
35-
temporal-sdk-core-api = { version = "0.1.0", path = "../../../sdk-core/core-api", features = [
34+
temporal-sdk-core-api = { version = "0.1.0", path = "./sdk-core/core-api", features = [
3635
"envconfig",
3736
] }
38-
temporal-sdk-core-protos = { version = "0.1.0", path = "../../../sdk-core/sdk-core-protos" }
37+
temporal-sdk-core-protos = { version = "0.1.0", path = "./sdk-core/sdk-core-protos" }
3938
tokio = "1.26"
4039
tokio-stream = "0.1"
4140
tonic = "0.13"

temporalio/bridge/src/worker.rs

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![allow(non_local_definitions)] // pymethods annotations causing issues with this lint
22

33
use anyhow::Context;
4-
use log::error;
54
use prost::Message;
65
use pyo3::exceptions::{PyException, PyRuntimeError, PyValueError};
76
use pyo3::prelude::*;
@@ -24,6 +23,7 @@ use temporal_sdk_core_protos::coresdk::{ActivityHeartbeat, ActivityTaskCompletio
2423
use temporal_sdk_core_protos::temporal::api::history::v1::History;
2524
use tokio::sync::mpsc::{channel, Sender};
2625
use tokio_stream::wrappers::ReceiverStream;
26+
use tracing::error;
2727

2828
use crate::client;
2929
use crate::runtime;
@@ -366,9 +366,7 @@ impl<SK: SlotKind + Send + Sync> SlotSupplierTrait for CustomSlotSupplierOfType<
366366
}) {
367367
Ok(f) => f,
368368
Err(e) => {
369-
error!(
370-
"Unexpected error in custom slot supplier `reserve_slot`: {e}"
371-
);
369+
error!("Unexpected error in custom slot supplier `reserve_slot`: {e}");
372370
continue;
373371
}
374372
}
@@ -401,9 +399,7 @@ impl<SK: SlotKind + Send + Sync> SlotSupplierTrait for CustomSlotSupplierOfType<
401399
)))
402400
})
403401
.unwrap_or_else(|e| {
404-
error!(
405-
"Uncaught error in custom slot supplier `try_reserve_slot`: {e}"
406-
);
402+
error!("Uncaught error in custom slot supplier `try_reserve_slot`: {e}");
407403
None
408404
})
409405
}
@@ -425,9 +421,7 @@ impl<SK: SlotKind + Send + Sync> SlotSupplierTrait for CustomSlotSupplierOfType<
425421
)?;
426422
PyResult::Ok(())
427423
}) {
428-
error!(
429-
"Uncaught error in custom slot supplier `mark_slot_used`: {e}"
430-
);
424+
error!("Uncaught error in custom slot supplier `mark_slot_used`: {e}");
431425
}
432426
}
433427

@@ -447,9 +441,7 @@ impl<SK: SlotKind + Send + Sync> SlotSupplierTrait for CustomSlotSupplierOfType<
447441
py_obj.call_method1("release_slot", (SlotReleaseCtx { slot_info, permit },))?;
448442
PyResult::Ok(())
449443
}) {
450-
error!(
451-
"Uncaught error in custom slot supplier `release_slot`: {e}"
452-
);
444+
error!("Uncaught error in custom slot supplier `release_slot`: {e}");
453445
}
454446
}
455447

0 commit comments

Comments
 (0)