Skip to content

Add timeout to Appwrite download and upload operations (C-13) #11

Description

@Polichinel

Context

unfao.py lines 131, 262, 272 make network calls to Appwrite (download_latest_file(), upload_data()) with no configured timeout. If the endpoint hangs, the pipeline blocks indefinitely with no error signal.

Requirements

  • Add timeout parameter to all Appwrite operations (download and upload)
  • If timeout is exceeded, log ERROR and raise (ADR-008 compliant)
  • Timeout value should be configurable or have a sensible default (e.g., 300s)

Risk Register

C-13 (Tier 2). Production reliability concern — a hung Appwrite connection blocks the pipeline indefinitely.

Dependencies

May require changes in views-pipeline-core's DatastoreModule if it doesn't expose a timeout parameter. Investigate before implementing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions