Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ericallam opened this issue Sep 20, 2024 · 0 comments

Comments

@ericallam
Copy link
Member

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:

if (latestBackgroundWorker?.contentHash === body.metadata.contentHash) {

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant