Skip to main content
Solved

Triggering the workflow run

  • October 18, 2023
  • 1 reply
  • 33 views

Forum|alt.badge.img

Hi, 

thanks for enabling the early adopter version.

I’ve created a workflow and was planning to disable all my transformations to see if we can rely only on the workflow and get better results than transformation (which sometimes fails causing data latencies), but I’m missing one part: How do we trigger the workflow to run based ion new data arrival or schedule?

Best answer by Jørgen Lund

Hi @Leandro Santos, thanks for the question! 

Currently, the way to trigger a worklfow is using the /run endpoint. To execute a worklow on a schedule, we recommend using a scheduled Cognite Function as described in the last part of the example notebook that you can find in this post.

Native capabilities for creating schedule- and event-based (e.g. based on new data arrival as you suggest) triggers for workflows is something we are looking into adding at a later stage, so any input on specific functionality you would need is valuable information. 

1 reply

Jørgen Lund
Seasoned Practitioner
Forum|alt.badge.img
  • Product Manager
  • Answer
  • October 18, 2023

Hi @Leandro Santos, thanks for the question! 

Currently, the way to trigger a worklfow is using the /run endpoint. To execute a worklow on a schedule, we recommend using a scheduled Cognite Function as described in the last part of the example notebook that you can find in this post.

Native capabilities for creating schedule- and event-based (e.g. based on new data arrival as you suggest) triggers for workflows is something we are looking into adding at a later stage, so any input on specific functionality you would need is valuable information.