Skip to content

Commit

Permalink
use smaller rabbitmq image
Browse files Browse the repository at this point in the history
  • Loading branch information
nonnontrivial committed Jul 7, 2024
1 parent 5f58ca1 commit d5b6855
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
- "6379:6379"

rabbitmq:
image: "rabbitmq:management"
image: "rabbitmq:3-management-alpine"
ports:
- "5672:5672"
- "15672:15672"
Expand Down Expand Up @@ -60,5 +60,4 @@ services:

volumes:
open-meteo-data:
external: true

5 changes: 1 addition & 4 deletions pp/pp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@


async def main():
"""initializes process of publishing sky brightness
n.b. with 122 res 0 cells on 2016 macbook, this will publish at a rate of 1.4m/s
"""
"""initializes process of publishing sky brightness messages to the prediction queue."""

try:
connection = pika.BlockingConnection(pika.ConnectionParameters(rabbitmq_host))
Expand Down
2 changes: 1 addition & 1 deletion pp/pp/prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def create_brightness_message(client: httpx.AsyncClient, h3_lat: float, h3


async def publish_cell_brightness(client: httpx.AsyncClient, h3_coords: Tuple[float, float], channel: Channel):
"""create and publish sky brightness at given h3 cell coords."""
"""request and publish sky brightness at given h3 cell coords."""
try:
lat, lon = h3_coords

Expand Down

0 comments on commit d5b6855

Please sign in to comment.