This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch agent-framewok-refactoring
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/agent-framewok-refactoring by 
this push:
     new 6ea4b678f8 Fetching python libraries from agent
6ea4b678f8 is described below

commit 6ea4b678f817af4de4c1c902861b7dfd3384b3fd
Author: Dimuthu Wannipurage <[email protected]>
AuthorDate: Thu Dec 5 12:16:51 2024 -0500

    Fetching python libraries from agent
---
 modules/agent-framework/airavata-agent/agent.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/agent-framework/airavata-agent/agent.go 
b/modules/agent-framework/airavata-agent/agent.go
index 47e504de4d..99d28c8088 100644
--- a/modules/agent-framework/airavata-agent/agent.go
+++ b/modules/agent-framework/airavata-agent/agent.go
@@ -119,12 +119,15 @@ func main() {
                                sessionId := x.PythonExecutionRequest.SessionId
                                code := x.PythonExecutionRequest.Code
                                workingDir := 
x.PythonExecutionRequest.WorkingDir
+                               libraries := x.PythonExecutionRequest.Libraries
 
                                log.Printf("[agent.go] Execution id %s", 
executionId)
                                log.Printf("[agent.go] Session id %s", 
sessionId)
                                log.Printf("[agent.go] Code %s", code)
                                log.Printf("[agent.go] Working Dir %s", 
workingDir)
+                               log.Printf("[agent.go] Libraries %s", libraries)
 
+                               // TODO: cd into working dir, create the 
virtual environment with provided libraries
                                cmd := exec.Command("python3", "-c", code) 
//TODO: Load python runtime from a config
 
                                output, err := cmd.Output()

Reply via email to