Skip re-fetching a CPF from the per-pessoa Gennera loop when the bulk ingressantes step already resolved it for the same ano, cutting redundant HTTP fan-out. Add bounded retry with backoff on transient connection errors (never on HTTP status errors) across the four Gennera fetch functions, backed by a shared requests.Session for connection reuse instead of one-off urllib calls. Also stop syncing carga_horaria_integralizada from the API once a vinculo is FORMADO, matching the existing sticky-situacao rule, in both the vinculo import and the standalone carga-horaria command. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
13 lines
278 B
TOML
13 lines
278 B
TOML
[project]
|
|
name = "autocensup"
|
|
version = "0.1.0"
|
|
description = "Aplicacao Django com PostgreSQL"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"django>=5.2,<6.0",
|
|
"psycopg[binary]>=3.2,<4.0",
|
|
"celery[redis]>=5.4,<6.0",
|
|
"requests>=2.31,<3.0",
|
|
]
|