@@ -19,7 +19,7 @@ pip install fastapi-cloud-tasks
19
19
- Tasks are regular FastAPI endpoints on plain old HTTP.
20
20
- ` Depends ` just works!
21
21
- All middlewares, telemetry, auth, debugging etc solutions for FastAPI work as is.
22
- - Host task runners it independent of GCP. If CloudTasks can reach the URL, it can invoke the task.
22
+ - Host task runners independent of GCP. If CloudTasks can reach the URL, it can invoke the task.
23
23
- Save money.
24
24
- Task invocation with GCP is [ free for first million, then costs $0.4/million] ( https://cloud.google.com/tasks/pricing ) .
25
25
That's almost always cheaper than running a RabbitMQ/Redis/SQL backend for celery.
@@ -103,7 +103,7 @@ FastAPI Cloud Tasks works by putting the three together:
103
103
### Local
104
104
105
105
Pre-requisites:
106
- - ` pip install local-requirements.txt `
106
+ - ` pip install fastapi-cloud-tasks `
107
107
- Install [ cloud-tasks-emulator] ( https://github.com/aertje/cloud-tasks-emulator )
108
108
- Alternatively install ngrok and forward the server's port
109
109
@@ -332,4 +332,10 @@ async def my_task(ct_headers: CloudTasksHeaders = Depends()):
332
332
333
333
Check the file [ fastapi_cloud_tasks/dependencies.py] ( fastapi_cloud_tasks/dependencies.py ) for details.
334
334
335
+ ## Contributing
336
+
337
+ - Run ` pre-commit install ` on your local to get pre-commit hook.
338
+ - Make changes and raise a PR!
339
+ - If the change is massive, open an issue to discuss it before writing code.
340
+
335
341
Note: This project is neither affiliated with, nor sponsored by Google.
0 commit comments