Skip to content

Commit

Permalink
fix: ignore gwJobs' destinationID in processor rsources.statCollector (
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidddddarth committed Jan 16, 2024
1 parent 1166d5c commit 8d58bd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3000,7 +3000,7 @@ func (proc *Handle) handlePendingGatewayJobs(partition string) bool {
return false
}

rsourcesStats := rsources.NewStatsCollector(proc.rsourcesService)
rsourcesStats := rsources.NewStatsCollector(proc.rsourcesService, rsources.IgnoreDestinationID())
rsourcesStats.BeginProcessing(unprocessedList.Jobs)

proc.Store(partition,
Expand Down
2 changes: 1 addition & 1 deletion processor/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (w *worker) Work() (worked bool) {

w.handle.stats().DBReadThroughput(w.partition).Count(throughputPerSecond(jobs.EventsCount, time.Since(start)))

rsourcesStats := rsources.NewStatsCollector(w.handle.rsourcesService())
rsourcesStats := rsources.NewStatsCollector(w.handle.rsourcesService(), rsources.IgnoreDestinationID())
rsourcesStats.BeginProcessing(jobs.Jobs)
subJobs := w.handle.jobSplitter(jobs.Jobs, rsourcesStats)
for _, subJob := range subJobs {
Expand Down
2 changes: 1 addition & 1 deletion processor/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (m *mockWorkerHandle) handlePendingGatewayJobs(partition string) bool {
if len(jobs.Jobs) > 0 {
_ = m.markExecuting(partition, jobs.Jobs)
}
rsourcesStats := rsources.NewStatsCollector(m.rsourcesService())
rsourcesStats := rsources.NewStatsCollector(m.rsourcesService(), rsources.IgnoreDestinationID())
for _, subJob := range m.jobSplitter(jobs.Jobs, rsourcesStats) {
m.Store(partition,
m.transformations(partition,
Expand Down

0 comments on commit 8d58bd5

Please sign in to comment.