Skip to content

Commit 1fc9f8a

Browse files
authored
Chore: align interfaces (#352)
* adjust interfaces to new prime lib standards (Socket env var, event handling)
1 parent 40642d0 commit 1fc9f8a

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

crates/orchestrator/src/plugins/node_groups/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl NodeGroupsPlugin {
9898
fn generate_group_id() -> String {
9999
use rand::Rng;
100100
let mut rng = rand::rng();
101-
format!("group_{}", rng.random::<u64>())
101+
format!("{}", rng.random::<u64>())
102102
}
103103

104104
fn get_group_key(group_id: &str) -> String {

crates/validator/src/validators/synthetic_data.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -558,18 +558,6 @@ impl SyntheticDataValidator {
558558
};
559559
debug!("Key {} has {} work units", work_key, work_info.work_units);
560560

561-
// Invalidate work if work units exceed threshold
562-
if work_info.work_units > U256::from(1) {
563-
if let Err(e) = self_arc.invalidate_work(work_key).await {
564-
error!("Failed to invalidate work {}: {}", work_key, e);
565-
continue;
566-
}
567-
self_arc
568-
.update_work_validation_status(work_key, &ValidationResult::Invalidated)
569-
.await?;
570-
continue;
571-
}
572-
573561
let cache_status = self_arc
574562
.get_work_validation_status_from_redis(work_key)
575563
.await?;

crates/worker/src/docker/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl DockerService {
211211
}
212212

213213
env_vars.insert("NODE_ADDRESS".to_string(), node_address);
214-
env_vars.insert("PRIME_TASK_BRIDGE_SOCKET".to_string(), task_bridge_socket_path.to_string());
214+
env_vars.insert("PRIME_SOCKET_PATH".to_string(), task_bridge_socket_path.to_string());
215215
env_vars.insert("PRIME_TASK_ID".to_string(), payload.id.to_string());
216216
if let Some(p2p_seed) = p2p_seed {
217217
env_vars.insert("IROH_SEED".to_string(), p2p_seed.to_string());

crates/worker/src/docker/taskbridge/bridge.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl TaskBridge {
168168
extract_next_json(&data[current_pos..])
169169
{
170170
debug!("Extracted JSON object: {}", json_str);
171-
if json_str.contains("file_name") {
171+
if json_str.contains("output/save_path") {
172172
debug!("Processing file_name message");
173173
if let Some(storage_path) = storage_path_clone.clone() {
174174
if let Ok(file_info) =
@@ -221,7 +221,7 @@ impl TaskBridge {
221221
} else {
222222
error!("No storage path set");
223223
}
224-
} else if json_str.contains("file_sha") {
224+
} else if json_str.contains("output/sha256") {
225225
debug!("Processing file_sha message");
226226
if let Ok(file_info) =
227227
serde_json::from_str::<serde_json::Value>(json_str)

0 commit comments

Comments
 (0)