cocoindex icon indicating copy to clipboard operation
cocoindex copied to clipboard

[FEATURE] make target deletion (drop) tolerate failures

Open georgeh0 opened this issue 2 weeks ago • 2 comments

When we delete (drop) a target backend, sometimes it fails because the connection is no longer available. Currently this may block flow's setup process.

We want to make target deletion (drop) tolerate failures. Specifically:

  • Add a new field ignore_target_drop_failures to Settings. Use env variable COCOINDEX_IGNORE_TARGET_DROP_FAILURES as the default value.
  • When ignore_target_drop_failures is set to true, when there's any error in dropping a target backend, log an error instead of popping up the error which terminates the process.
  • When ignore_target_drop_failures is set to false, in the error message created during dropping a target backend, put a hint to let users know about the COCOINDEX_IGNORE_TARGET_DROP_FAILURES option.

❤️ Contributors, please refer to 📙Contributing Guide. Unless the PR can be sent immediately (e.g. just a few lines of code), we recommend you to leave a comment on the issue like I'm working on it or Can I work on this issue? to avoid duplicating work. Our Discord server is always open and friendly.

georgeh0 avatar Dec 13 '25 07:12 georgeh0

@georgeh0 Hi, I can take this

prithvi-moonshot avatar Dec 18 '25 15:12 prithvi-moonshot

assigned, thanks!

badmonster0 avatar Dec 20 '25 03:12 badmonster0