Skip to main content
Question

Function deployment fails silently

  • April 13, 2026
  • 2 replies
  • 9 views

Marwen TALEB
MVP

Hello, 

 

Since function deployment using cdf tk is asynchronous, function can fail without any error feedback and stay in failing state until next deployment..

Any recommendation to avoid this?

Thanks

 

 

2 replies

Michael Bennett
Practitioner
Forum|alt.badge.img

Hi ​@Marwen TALEB ,

Have you tried running the function locally on your machine? There is an option to test it with toolkit. You can run the following: poetry run cdf run function local. This will build a venv in your base directory with your config.env.yaml and cdf.toml files. This could potentially give you some output if it fails locally as well. I’ve included this article for reference. 

I did see that there is some interest in more robust deploying of functions, so there could be.optimism for better logging and overall improvement as well..

 

Regards,


Michael Bennett

Cognite Academy Engineer 


Marwen TALEB
MVP
  • Author
  • MVP
  • April 13, 2026

Hi ​@Michael Bennett ,

Thank you for your response.

The issue is not the function testing. We know how to test the function and its code.

The issue is when you test the function in DEV environment and QA for instance and everything goes well then the next day you go to PROD and deploy it via the same CI/CD and all seems ok. i.e: cdf tk says that it deploy all function successfully. 

However in reality the function deployment is still queued and might fail. We have no way to know that it failed other than manually monitoring it..