[英]How to suspend a mongodb stitch trigger within a stitch function
I have a mongodb stitch database trigger that executes a stitch function on collection update. 我有一个mongodb针迹数据库触发器,该触发器在集合更新时执行针迹函数。 The stitch function in question will connect to amazon kinesis and transmit the database changes.
有问题的针迹功能将连接到亚马逊运动并传输数据库更改。 I want to suspend the stitch trigger from with in the function, if there is an error from amazon kinesis.
如果来自Amazon Kinesis的错误,我想暂停该函数中的针迹触发器。 Is there a way to do this
有没有办法做到这一点
Thanks 谢谢
There is currently no administration API for triggers from a Function. 当前没有用于功能触发器的管理API。
One possible workaround would be to store some enabled/disabled state somewhere and read it from your triggered Function. 一种可能的解决方法是将某个启用/禁用状态存储在某个位置,然后从触发的函数中读取该状态。 You can then decide whether to continue based on this state.
然后,您可以根据此状态决定是否继续。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.