-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #959 from julep-ai/f/switch-to-pg
f/switch to pg
- Loading branch information
Showing
507 changed files
with
15,500 additions
and
19,756 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,11 @@ jobs: | |
uses: astral-sh/setup-uv@v4 | ||
with: | ||
enable-cache: true | ||
|
||
- name: Install Go migrate | ||
uses: jaxxstorm/[email protected] | ||
with: # Grab the latest version | ||
repo: golang-migrate/migrate | ||
|
||
- name: Set up python and install dependencies | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,11 @@ jobs: | |
uses: astral-sh/setup-uv@v4 | ||
with: | ||
enable-cache: true | ||
|
||
- name: Install Go migrate | ||
uses: jaxxstorm/[email protected] | ||
with: # Grab the latest version | ||
repo: golang-migrate/migrate | ||
|
||
- name: Set up python and install dependencies | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,11 @@ jobs: | |
uses: astral-sh/setup-uv@v4 | ||
with: | ||
enable-cache: true | ||
|
||
- name: Install Go migrate | ||
uses: jaxxstorm/[email protected] | ||
with: # Grab the latest version | ||
repo: golang-migrate/migrate | ||
|
||
- name: Set up python and install dependencies | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ ngrok* | |
*/node_modules/ | ||
.aider* | ||
.vscode/ | ||
schema.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Local database files | ||
cozo.db | ||
temporal.db | ||
*.bak | ||
*.dat | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from typing import Any | ||
|
||
from aiobotocore.client import AioBaseClient | ||
from asyncpg.pool import Pool | ||
|
||
|
||
class State: | ||
postgres_pool: Pool | None | ||
s3_client: AioBaseClient | None | ||
|
||
def __init__(self): | ||
self.postgres_pool = None | ||
self.s3_client = None | ||
|
||
def __setattr__(self, name: str, value: Any) -> None: | ||
super().__setattr__(name, value) | ||
|
||
|
||
class Container: | ||
state: State | ||
|
||
def __init__(self): | ||
self.state = State() | ||
|
||
|
||
container = Container() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
from typing import Callable | ||
|
||
from temporalio import activity | ||
|
||
from ..env import testing | ||
|
||
|
||
async def demo_activity(a: int, b: int) -> int: | ||
# Should throw an error if testing is not enabled | ||
raise Exception("This should not be called in production") | ||
msg = "This should not be called in production" | ||
raise Exception(msg) | ||
|
||
|
||
async def mock_demo_activity(a: int, b: int) -> int: | ||
return a + b | ||
|
||
|
||
demo_activity: Callable[[int, int], int] = activity.defn(name="demo_activity")( | ||
demo_activity = activity.defn(name="demo_activity")( | ||
demo_activity if not testing else mock_demo_activity | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.