Skip to content

Commit 0dfeaf8

Browse files
committed
Update Core
1 parent 02ec5c6 commit 0dfeaf8

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/sdk-core

Submodule sdk-core updated 80 files

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;
@@ -365,9 +365,7 @@ impl<SK: SlotKind + Send + Sync> SlotSupplierTrait for CustomSlotSupplierOfType<
365365
}) {
366366
Ok(f) => f,
367367
Err(e) => {
368-
error!(
369-
"Unexpected error in custom slot supplier `reserve_slot`: {e}"
370-
);
368+
error!("Unexpected error in custom slot supplier `reserve_slot`: {e}");
371369
continue;
372370
}
373371
}
@@ -400,9 +398,7 @@ impl<SK: SlotKind + Send + Sync> SlotSupplierTrait for CustomSlotSupplierOfType<
400398
)))
401399
})
402400
.unwrap_or_else(|e| {
403-
error!(
404-
"Uncaught error in custom slot supplier `try_reserve_slot`: {e}"
405-
);
401+
error!("Uncaught error in custom slot supplier `try_reserve_slot`: {e}");
406402
None
407403
})
408404
}
@@ -424,9 +420,7 @@ impl<SK: SlotKind + Send + Sync> SlotSupplierTrait for CustomSlotSupplierOfType<
424420
)?;
425421
PyResult::Ok(())
426422
}) {
427-
error!(
428-
"Uncaught error in custom slot supplier `mark_slot_used`: {e}"
429-
);
423+
error!("Uncaught error in custom slot supplier `mark_slot_used`: {e}");
430424
}
431425
}
432426

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

0 commit comments

Comments
 (0)