Skip to main content
Answer

Cognite function chaining

  • January 16, 2023
  • 4 replies
  • 90 views

Forum|alt.badge.img+1

Can we have function chaining feature in Cognite functions where on sucess/failure status of a function we initiate another function.

Best answer by Knut Vidvei

Hi, Ardash,

 

Thank you for the questions on Cognite Functions. This functionality allows you to deploy and run Python code on Cognite Data Fusion on a schedule or by calling the function.

The orchestration is up to the user or system integrator to orchestrate themselves based on your use case, but is not an out-of-the-box functionality in Cognite Data Fusion, as Jason says.

What type of orchestration would you need to get more value here?

 

Full documentation is located here, with https://docs.cognite.com/cdf/functions/

To call a function you use: 

call = func.call(data={"assetNo": 0})

And to get the response

call.get_response()

 

Best regards,

Knut Vidvei

4 replies

Forum|alt.badge.img
  • Seasoned Practitioner
  • January 16, 2023

Ardash,
No, workflow orchestration is not currently available out of the box.


Jason


Knut Vidvei
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • Answer
  • January 17, 2023

Hi, Ardash,

 

Thank you for the questions on Cognite Functions. This functionality allows you to deploy and run Python code on Cognite Data Fusion on a schedule or by calling the function.

The orchestration is up to the user or system integrator to orchestrate themselves based on your use case, but is not an out-of-the-box functionality in Cognite Data Fusion, as Jason says.

What type of orchestration would you need to get more value here?

 

Full documentation is located here, with https://docs.cognite.com/cdf/functions/

To call a function you use: 

call = func.call(data={"assetNo": 0})

And to get the response

call.get_response()

 

Best regards,

Knut Vidvei


Anita Hæhre
Seasoned Practitioner
Forum|alt.badge.img+1
  • Head of Community
  • February 24, 2023

Hi @Adarsh Dhiman did Knut’s reply above give you what you need? 


Forum|alt.badge.img+1
  • Author
  • Seasoned
  • March 12, 2023

Hi Anita & Knut,

Thank you. Yes, the explanation is good enough.

Regards,

Adarsh