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

Track Network & Address + Generate Pydantic DB Types #38

Merged
merged 7 commits into from
Jan 26, 2024

Conversation

dOrgJelli
Copy link
Contributor

@dOrgJelli dOrgJelli commented Jan 26, 2024

closes #27

web/app/actions/startWorker.ts Outdated Show resolved Hide resolved
@@ -22,14 +22,17 @@ async def runs(worker_id: str, params: Params) -> Response:
if prompt == "":
raise HTTPException(status_code=400, detail="Prompt cannot be empty.")

supabase = client.create_admin()
worker_exists = tables.workers.exists(supabase, worker_id)
db = client.create_admin()
Copy link
Contributor

Choose a reason for hiding this comment

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

We could move the client into the method (like we have for some other operations) since the client is lightweight and doesn't need to be re-used (I remember you looking into that)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was thinking the same, okay will do

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do in another PR

@dOrgJelli dOrgJelli merged commit 2144d6b into dev Jan 26, 2024
1 check passed
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.

Store Project's Network & Address
3 participants