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

V3 state crawler #1142

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

V3 state crawler #1142

wants to merge 7 commits into from

Conversation

Andrei-Dolgolev
Copy link
Contributor

@Andrei-Dolgolev Andrei-Dolgolev commented Nov 26, 2024

State jobs have ability run over v3 instaces.

state-crawler --web3-uri  crawl-jobs --blockchain game7_testnet  --customer-db-uri

Added --customer-db-uri parameter.

Request connection string from the Moonstream API.
"""
response = requests.get(
f"https://mdb-v3-api.moonstream.to/customers/{customer_id}/instances/{instance_id}/creds/seer/url",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create env var for mdb-v3 api pls. Actually it is already exists MOONSTREAM_DB_V3_CONTROLLER_API

@@ -67,3 +67,6 @@ class ViewTasks(BaseModel):
name: str
outputs: List[Dict[str, Any]]
address: str
customer_id: Optional[str] = None
instance_id: Optional[str] = None
v3: Optional[bool] = False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not make it Optional or it will break current implementation? Otherwise it is not convenient to have 3 values None, False and True..

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

Successfully merging this pull request may close these issues.

2 participants