sassoftware / python-sasctl

Python package and CLI for user-friendly integration with SAS Viya
https://sassoftware.github.io/python-sasctl
Apache License 2.0
45 stars 40 forks source link

Associated objects of Task missing when the workflow execute by sasctl instead of UI #157

Open staceychan opened 1 year ago

staceychan commented 1 year ago

Describe the issue When submit the workflow from sasctl , the associated objects of the user task would be missed.

To Reproduce

  1. Submit workflow with user task in it.(by sasctl and UI) r = mm.execute_model_workflow_definition(project_name="test", workflow_name="Workflow_1")

  2. Check the task tab in model manger ui. image

One of the tasks which miss the associated object was submitted by sasctl

Expected behavior The task should show the associated object

Stack Trace If you're experiencing an exception, include the full stack trace and error message.

Version What version of sasctl are you using? 1.8.2 image

staceychan commented 1 year ago

Hi Expert,

Is there any progress on this bug? If you need any more information please let me know. Many thanks!

smlindauer commented 1 year ago

Hey @staceychan,

Is this for Viya 4 or Viya 3.5?

Edit: I am having a very difficult time determining where within the REST call that an associated object is being specified. I likely do not have enough workflow API experience to provide a direct solution, but I am assuming that there is a parameter missing from sasctl._services.workflow.run_workflow_definition(), which is causing this issue.

staceychan commented 1 year ago

Hi @smlindauer,

Thanks for your reply and investigation. We are using sasctl on Viya4.

Is there any possible timeline or schedule on this API issue?

smlindauer commented 1 year ago

Hey @staceychan,

I am still digging in to the issue, but the workflow API side is not publicly documented and I think we may need to refactor some of the /workflow calls to utilize modelManagement/workflow instead.

Talking with my colleagues, it does look like the issue may not be caused by sasctl's usage of the APIs, but instead with the endpoint itself. I will see if I can get a more concrete answer on when to expect a fix.

staceychan commented 1 year ago

Hi @smlindauer ,

Appreciate it! Wondering if this an issue related to the software or just api thing? Cause if it's a viya bug, maybe you can give me some clues to start a tech support ticket. Our customer is pushing us to get the answer since this function is about to go production.

Many thanks and have a great weekend! :)

smlindauer commented 1 year ago

Hey @staceychan,

This was a software issue on SAS Viya. To my knowledge, the bug has been fixed and should be shipped in 2023.04. If your customer is still seeing this issue after the release, please submit a tech support ticket. As context, the bug internally was labelled as "In Tasks category, no value in column Associated Objects" for the WORKFLOW.REST component.

Let me know if you need anymore details or help.