nestjs / nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
https://nestjs.com
MIT License
66.89k stars 7.56k forks source link

Durable providers are unable to recover from errors being thrown #13953

Open dberardo-com opened 1 week ago

dberardo-com commented 1 week ago

Is there an existing issue for this?

Current behavior

the issue is described here and it is still relevant: https://github.com/nestjs/nest/issues/11664

Minimum reproduction code

check here: https://github.com/nestjs/nest/issues/11664

Steps to reproduce

No response

Expected behavior

durable provider should be decached and retried next time.

it would be nice if this is the default behavior even after the creation of the provider, i.e. in case of exceptions along its life

Package

Other package

No response

NestJS version

10.1.3

Packages versions

  "@nestjs/typeorm": "^10.0.0",

Node.js version

16

In which operating systems have you tested?

Other

No response

micalevisk commented 1 week ago

here's a minimum reproduction of this: https://gitlab.com/micalevisk/nestjs-issue-11664