refactor: уникальные имена функций-обработчиков
handle() → run_sql() (sql_runner.py, entrypoint: sql_runner.run_sql) handle() → crud() (notes_crud.py, entrypoint: notes_crud.crud) handle() → list_notes() (notes_list.py, entrypoint: notes_list.list_notes)
This commit is contained in:
@@ -18,12 +18,12 @@ data "archive_file" "notes_crud_zip" {
|
||||
}
|
||||
|
||||
# CRUD функция в кластере.
|
||||
# entrypoint = "notes_crud.handle" → файл notes_crud.py, функция handle().
|
||||
# entrypoint = "notes_crud.crud" → файл notes_crud.py, функция crud().
|
||||
resource "sless_function" "notes_crud" {
|
||||
namespace = "default"
|
||||
name = "notes"
|
||||
runtime = "python3.11"
|
||||
entrypoint = "notes_crud.handle"
|
||||
entrypoint = "notes_crud.crud"
|
||||
memory_mb = 128
|
||||
timeout_sec = 30
|
||||
|
||||
|
||||
Reference in New Issue
Block a user