Skip to content

Commit 8771532

Browse files
committed
fix:small tweaks
1 parent 100ec63 commit 8771532

20 files changed

Lines changed: 157 additions & 159 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,16 @@ celerybeat.pid
122122
*.sage.py
123123

124124
# Environments
125-
.env
125+
.env*
126126
.venv
127127
env/
128128
venv/
129129
ENV/
130130
env.bak/
131131
venv.bak/
132132

133+
**/*.pem
134+
133135
# Spyder project settings
134136
.spyderproject
135137
.spyproject

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,15 @@ services:
9393
condition: service_completed_successfully
9494
migration:
9595
condition: service_completed_successfully
96+
env_file:
97+
- .env.server
9698
environment:
99+
SERVER_GRPC_BROADCAST_ADDRESS: hatchet-engine:7070
97100
DATABASE_URL: "postgres://hatchet:hatchet@postgres:5432/hatchet"
98101
volumes:
99102
- hatchet_certs:/hatchet/certs
100103
- hatchet_config:/hatchet/config
104+
- ./github.pem:/hatchet/github/github.pem # This line mounts your optional github pem
101105
hatchet-frontend:
102106
image: ghcr.io/hatchet-dev/hatchet/hatchet-frontend:latest
103107
caddy:

fast-api-react/backend/src/api/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717

1818

1919
origins = [
20-
"http://localhost:3000",
21-
"localhost:3000"
20+
"http://localhost:3001",
21+
"localhost:3001"
2222
]
2323

2424

2525
app.add_middleware(
2626
CORSMiddleware,
27-
allow_origins=origins,
27+
allow_origins=["*"],
2828
allow_credentials=True,
2929
allow_methods=["*"],
3030
allow_headers=["*"]

fast-api-react/backend/src/workflows/basicrag.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ class BasicRagWorkflow:
1212

1313
@hatchet.step()
1414
def start(self, context: Context):
15-
override = context.playground('model', "gpt-3.5-turbo")
16-
1715
return {
18-
"status": "reading hatchet docs" + override,
16+
"status": "reading hatchet docs",
1917
}
2018

2119
@hatchet.step(parents=["start"])
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
from .hatchet import hatchet
22
from .basicrag import BasicRagWorkflow
3-
from .simple import SimpleWorkflow
43

54

65
def start():
7-
worker = hatchet.worker('example-worker')
8-
6+
worker = hatchet.worker('basic-rag-worker')
97
worker.register_workflow(BasicRagWorkflow())
10-
worker.register_workflow(SimpleWorkflow())
11-
128
worker.start()

fast-api-react/backend/src/workflows/simple.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

simple-examples/poetry.lock

Lines changed: 124 additions & 96 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

simple-examples/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ python-dotenv = "^1.0.0"
1414
openai = "^1.12.0"
1515
beautifulsoup4 = "^4.12.3"
1616
requests = "^2.31.0"
17-
urllib3 = "1.26.15"
18-
hatchet-sdk = "0.10.5"
17+
hatchet-sdk = "^0.15.0"
1918

2019
[build-system]
2120
requires = ["poetry-core"]

simple-examples/src/concurrency_limit/event_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ..hatchet import hatchet
1+
from src.hatchet import hatchet
22

33
hatchet.client.event.push(
44
"concurrency-test",

simple-examples/src/concurrency_limit/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ..hatchet import hatchet
1+
from src.hatchet import hatchet
22

33

44
@hatchet.workflow(on_events=["concurrency-test"])

0 commit comments

Comments
 (0)