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

Fix: Error fetching message from vm-connector for start_watch_for_messages_task #710

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/aleph/vm/orchestrator/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ async def start_watch_for_messages_task(app: web.Application):

# Register an hardcoded initial program
# TODO: Register all programs with subscriptions
sample_message, _ = await load_updated_message(
ref=ItemHash("cad11970efe9b7478300fd04d7cc91c646ca0a792b9cc718650f86e1ccfac73e")
)
if isinstance(sample_message, ProgramMessage):
assert sample_message.content.on.message, sample_message
reactor.register(sample_message)
# sample_message, _ = await load_updated_message(
# ref=ItemHash("cad11970efe9b7478300fd04d7cc91c646ca0a792b9cc718650f86e1ccfac73e")
# )
# if isinstance(sample_message, ProgramMessage):
# assert sample_message.content.on.message, sample_message
# reactor.register(sample_message)

app["pubsub"] = pubsub
app["reactor"] = reactor
Expand Down
Loading