cancel
Showing results for 
Search instead for 
Did you mean: 

First AI Project AI Core: Execution does not write Log

TillHeinen
Participant
0 Kudos
966

Hi,

I am building my first AI Project (Create Your First Machine Learning Project using SAP AI Core) --> Quick Start for Your First AI Project Using SAP AI Core

I connected GitHub to SAP AI Core, checked the sync status of my app, created scenarios and workflows.

But when displaying the Logs after execution, the Log is empty.

Expected content of Log: "Yes......"

as coded print("Yes.....")

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: first-pipeline-natth
  annotations:
    scenarios.ai.sap.com/description: "Introduction to SAP AI Core"
    scenarios.ai.sap.com/name: "Tutorial"
    executables.ai.sap.com/description: "Greets the user"
    executables.ai.sap.com/name: "Hello Pipeline"
  labels:
    scenarios.ai.sap.com/id: "learning"
    ai.sap.com/version: "2.0"
spec:
  entrypoint: mypipeline
  templates:
  - name: mypipeline
    steps:
    - - name: greet
        template: greeter

  - name: greeter
    container:
      image: docker.io/python:latest
      command:
        - python3
        - '-c'
      args:
       - |
        print("Yes.....")<br>

Thanks for your support!

Till

Accepted Solutions (1)

Accepted Solutions (1)

abhijithbabu
Employee
Employee

The logs of the execution are visible only while the execution is in RUNNING state. When the execution is in COMPLETE, DEAD, OR STOPPED state, the log will be automatically deleted. In the demo shown in the tutorial, the logs are visible when the execution status is RUNNING.

Once the execution is COMPLETE, DEAD or STOPPED, the log will be cleared. See screenshot below.

JoseMon
Discoverer
0 Kudos
I have the same issue.
JoseMon
Discoverer
0 Kudos

The logs appear one minute later.

SM2023
Explorer
0 Kudos

Hello,

I am following the blog: Quick Start for Your First AI Project Using SAP AI Core | SAP Tutorials

As per the screenshot the logs are visible when the status is "Completed".

 

SM2023_1-1721913101202.png

But I do not see any entries in the log. I am able to see only two status' after I start execution: "Unknown" and "Completed" when the execution is completed. I do not get "Running" status, I have been closely monitoring with consecutive refreshes. 

SM2023_2-1721913148550.png

Log entry is required to verify the result of pipeline execution. Can someone guide?

Many thanks in advance!

 

SM2023
Explorer
Here is an update: I am finally able to see the logs. Putting it down here, if it may help someone... So after 30 mts of execution(last changed timestamp) I went to my "Workspaces" and selected the resourcegroup thereby setting the connection as the workspace context. After doing that I went to the ML Operations-->Executions and voila! was able to see the logs in the execution ID entry.

Answers (0)