Skip to content

Commit

Permalink
fix: continue running jobs even if loading metadata fails (#1435)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Oct 2, 2023
1 parent 659ed8b commit 3099737
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/indexer/document_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ func (idx *Indexer) decodeModule(ctx context.Context, modHandle document.DirHand
Defer: func(ctx context.Context, jobErr error) (job.IDs, error) {
ids := make(job.IDs, 0)
if jobErr != nil {
return ids, jobErr
idx.logger.Printf("loading module metadata returned error: %s", jobErr)
}

modCalls, mcErr := idx.decodeDeclaredModuleCalls(ctx, modHandle, ignoreState)
if mcErr != nil {
idx.logger.Printf("decoding declared module calls for %q failed: %s", modHandle.URI, mcErr)
Expand Down

0 comments on commit 3099737

Please sign in to comment.