mark_rss_source_failure

Documentation for eth_defi.feed.sources.mark_rss_source_failure function.

mark_rss_source_failure(yaml_path, failure_at, status_code=None, exception_message=None)

Stamp RSS failure fields on a feeder YAML.

Records the most recent RSS failure so operators can see which feeds are broken. Overwrites any previous failure fields.

Parameters
  • yaml_path (pathlib.Path) – Path to the feeder YAML file.

  • failure_at (str) – ISO date string, e.g. 2026-04-06.

  • status_code (Optional[int]) – HTTP status code, or None for non-HTTP failures.

  • exception_message (Optional[str]) – Exception message or HTTP status text.

Returns

True when the file was updated.

Return type

bool