Skip to content

Commit

Permalink
remove the wait
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecot committed Jul 29, 2024
1 parent 74c24d1 commit 6bca679
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions scripts/startQueryProviderHealthContainer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ trap 'echo "Warning: Script received SIGSEGV, ignoring"' 11;
trap 'echo "Error: Script terminated by signal, ignoring"' 2 15;
ulimit -c unlimited

# this is a must since the list of providers comes from here
echo "QueryPod $(date) :: Sleeping 1 minute before starting the first script..."
sleep 60

# Run the first script in an endless loop
while true; do
echo "QueryPod $(date) probe1 :: Starting 'python3 lavapProviderHealth/run.py'..."
Expand Down
4 changes: 2 additions & 2 deletions src/query/handlers/healthHandler.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// src/query/handlers/HealthRawHandler.ts

import { FastifyRequest, FastifyReply, RouteShorthandOptions } from 'fastify';
import fetch from 'node-fetch'; // Ensure you have node-fetch installed or use a compatible fetch API
import fetch from 'node-fetch';
import { QueryCheckJsinfoReadDbInstance } from '../queryDb';
import { JSINFO_QUERY_PORT, JSINFO_QUERY_HOST } from '../queryConsts'; // Adjust the import path as necessary
import { JSINFO_QUERY_PORT, JSINFO_QUERY_HOST } from '../queryConsts';

const JSINFO_BASE_URL = `http://${JSINFO_QUERY_HOST}:${JSINFO_QUERY_PORT}`;

Expand Down

0 comments on commit 6bca679

Please sign in to comment.