Skip to content

Commit

Permalink
Merge pull request #915 from golemfactory/event-api/fix-ya-provider-r…
Browse files Browse the repository at this point in the history
…unner-sess-id

Event api/fix ya provider runner sess
  • Loading branch information
mfranciszkiewicz authored Jan 13, 2021
2 parents 3600b41 + 0ceeddf commit ba0418f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agent/provider/src/provider_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ impl ProviderAgent {
// Generate session id from node name and process id to make sure it's unique.
let name = args.node.node_name.clone().unwrap_or(app_name.to_string());
args.market.session_id = format!("{}-[{}]", name, std::process::id());
args.runner.session_id = args.market.session_id.clone(); // TODO: unwind this dirty fix

let mut globals = GlobalsManager::try_new(&config.globals_file, args.node)?;
globals.spawn_monitor(&config.globals_file)?;
Expand Down

0 comments on commit ba0418f

Please sign in to comment.