trigger.dev icon indicating copy to clipboard operation
trigger.dev copied to clipboard

During dev, fixing a typescript error in a single file leads to tasks in those files not getting indexed

Open ericallam opened this issue 1 year ago • 0 comments

I think this just happened (will need to reproduce properly):

  • Running the dev command
  • There were typescript errors in a file with tasks
  • I fixed those typescript errors by editing a monorepo dependency (@trigger.dev/core)
  • Those tasks failed to get indexed after the fix

I think it may be related to the contentHash on the background worker and this line:

https://github.com/triggerdotdev/trigger.dev/blob/764f03a3c50b1d0bb21a02e32a72a51823b62fba/apps/webapp/app/v3/services/createBackgroundWorker.server.ts#L52

It may be that we need to make sure the contentHash is updated in these cases. Not sure this is really an issue, but something I want to make sure doesn't happen not in the monorepo.

ericallam avatar Sep 20 '24 12:09 ericallam