Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in 2019.3 with Python tool as first tool in workflow #29

Open
daqieq opened this issue Oct 21, 2019 · 1 comment
Open

Issue in 2019.3 with Python tool as first tool in workflow #29

daqieq opened this issue Oct 21, 2019 · 1 comment

Comments

@daqieq
Copy link

daqieq commented Oct 21, 2019

A custom tool I'm developing has an optional input defined in the XML file, so that the user could override the data that would normally come from that input connector using the HTML inputs. However, running the workflow with this custom tool as the 'first' tool in a data stream causes the debug workflow to end without processing the python main.py.
image
As you can see from the image, the first inv debug run completes even though there is a pdb.set_trace() in the code, and the "ToolId ..." output is missing.
The second inv debug run is after I updated the debug workflow to include an Text Input tool before the custom tool, and you can see that it stops at the trace point and allows me to inspect the code objects to confirm behavior is as expected.
To create this test tool, I simply copied the ExampleBatchTool into a new tool, renamed all the files, updated the places where the name is referenced in the code, and created a simple debug workflow. I've attached a ZIP of the YDMD and YXI files.

TestOptionalInput.zip

@daqieq
Copy link
Author

daqieq commented Oct 25, 2019

Re-reading my comments above I realized that I left out something important ...

The additional change I made to the ExampleBatchTool project was to change the XML file to make the input connection optional: Optional="True". Hopefully that was clear from the attached files, but just wanted to make sure! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant