- Deleted: TNAR, demo-event-log, demo-managed-functions, hello-go, hello-node, k8s, notes-python, pg-list-python, simple-node, simple-python - POSTGRES: removed luceUNDnode.tf (commented-out legacy), stress_log_1.txt, funcs_list.py; disabled stress_destroy_apply.sh (PG lifecycle stress has delete_user bug); added README.md - examples/README.md: updated to reflect current state (sless_service + sless_job)
19 lines
477 B
Python
19 lines
477 B
Python
# 2026-03-19
|
|
# stress_slow.py — долгая функция: спит N секунд (по умолчанию 8).
|
|
# Проверяет что timeout-механизм и параллельные запросы не блокируют друг друга.
|
|
|
|
import time
|
|
import os
|
|
|
|
_VERSION = "v1"
|
|
|
|
|
|
def run(event):
|
|
secs = int(event.get("sleep", 8))
|
|
time.sleep(secs)
|
|
return {
|
|
"version": _VERSION,
|
|
"slept_sec": secs,
|
|
"pid": os.getpid(),
|
|
}
|