Skip to main content

I have Cognite functions that are being reused, but I need to define correct inputs.
Today I have scheduled jobs that run for each function/input and they depend on one another to run. I arbitrarily set 30min difference from the schedule for hopefully one start when the other finished. But I’m already seeing problems with timeouts, so I may need to break the functions in smaller steps so they can finish on time, but I won’t be able to hope the schedule match as this will be much more complicated than my current scenario.

Today, while looking at the workflow I notice that I cannot pass a input for each function thru the UI. Is that intentional? Is there another way to reuse functions using workflow?

Hi @Leandro Santos. Sounds like a great use case for workflows!

As you’ve observed, configuration of Function input (“data” parameter) is currently not available in the UI. We’re planning to address this, but don’t have a clear timeline at the moment.

By creating the workflow definiton using the API/Python SDK, you can configure Function tasks including their input. If I understood your use case correctly, this should help you solve it. 

Let me know if you have any other quesitons! 


Reply