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

bug: geo scheduler fails if no locations #294

Open
jgryffindor opened this issue Mar 7, 2024 · 0 comments
Open

bug: geo scheduler fails if no locations #294

jgryffindor opened this issue Mar 7, 2024 · 0 comments
Assignees

Comments

@jgryffindor
Copy link
Contributor

Describe the bug
Geo scheduler fails when no items in database:

[Nest] 21736  - 03/07/2024, 11:00:00 AM   DEBUG [MetricsSchedulerService] No prometheus queries in database...
[Nest] 21736  - 03/07/2024, 11:00:00 AM   DEBUG [SchedulerService] No neighborhoods in database...
[Nest] 21736  - 03/07/2024, 11:00:00 AM   DEBUG [GeoUpdater] Seeding geolcations...
[Nest] 21736  - 03/07/2024, 11:00:00 AM     LOG [GeoUpdater] Error happened while updating geolocation:
TypeError: Cannot read properties of null (reading 'name')
    at GeoUpdater.seedLocationValues (/Users/justingriffin/git/lifted/many-product/talib/server/src/services/geo-scheduler/geo-updater/updater.ts:134:34)
    at GeoUpdater.run (/Users/justingriffin/git/lifted/many-product/talib/server/src/services/geo-scheduler/geo-updater/updater.ts:214:18)
    at GeoSchedulerService.updateLocations (/Users/justingriffin/git/lifted/many-product/talib/server/src/services/geo-scheduler/geo-scheduler.service.ts:68:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at GeoSchedulerService.run (/Users/justingriffin/git/lifted/many-product/talib/server/src/services/geo-scheduler/geo-scheduler.service.ts:44:9)

To Reproduce
Steps to reproduce the behavior:

  1. Delete all data in the database
  2. Run the server

Expected behavior
Should log an info message No locations in database... after checking before attempting to run

@jgryffindor jgryffindor self-assigned this Mar 7, 2024
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