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:
@@ -16,12 +16,12 @@ data "archive_file" "notes_list_zip" {
|
||||
}
|
||||
|
||||
# Read-only функция в кластере.
|
||||
# entrypoint = "notes_list.handle" → файл notes_list.py, функция handle().
|
||||
# entrypoint = "notes_list.list_notes" → файл notes_list.py, функция list_notes().
|
||||
resource "sless_function" "notes_list" {
|
||||
namespace = "default"
|
||||
name = "notes-list"
|
||||
runtime = "python3.11"
|
||||
entrypoint = "notes_list.handle"
|
||||
entrypoint = "notes_list.list_notes"
|
||||
memory_mb = 128
|
||||
timeout_sec = 30
|
||||
|
||||
|
||||
Reference in New Issue
Block a user