Skip to content

Commit

Permalink
add first run
Browse files Browse the repository at this point in the history
  • Loading branch information
djeck1432 committed Feb 19, 2025
1 parent 4aa1628 commit 9f3c8cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/data_handler/handlers/loan_states/zklend/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ def run(self) -> None:
"""
Runs the loan state computation for the specific protocol.
"""
max_retries = 5
max_retries = 10000
retry = 0
self.last_block = 48668 # FIXME change it after first run on the server
zklend_protocol_address = self.PROTOCOL_ADDRESSES

logger.info(f"Default last block: {self.last_block}")
Expand Down
4 changes: 2 additions & 2 deletions devops/prod/docker-compose.data-handler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
- data_handler_network
celery:
build:
context: ../apps
context: ../../apps
dockerfile: data_handler/Dockerfile
command: celery -A data_handler.celery_app.celery_conf worker --loglevel=INFO
environment:
Expand Down Expand Up @@ -61,7 +61,7 @@ services:
image: nginx
container_name: nginx
build:
context: ../apps/data_handler/nginx
context: ../../apps/data_handler/nginx
dockerfile: Dockerfile
ports:
- "80:80"
Expand Down

0 comments on commit 9f3c8cf

Please sign in to comment.