Skip to content

[Bug] whatsapp_cloud missing from _KNOWN_DELIVERY_PLATFORMS, breaking cron delivery validation #59988

Description

@isheng-eqi

Summary

whatsapp_cloud is present in _HOME_TARGET_ENV_VARS (line 229) and in gateway/config.py Platform enum (line 182), but absent from _KNOWN_DELIVERY_PLATFORMS (lines 204-209) in cron/scheduler.py.

Impact

Cron jobs targeting whatsapp_cloud as a delivery platform would fail _is_known_delivery_platform() validation, even though the platform has a valid gateway adapter and home-target env var.

Fix

Add "whatsapp_cloud" to _KNOWN_DELIVERY_PLATFORMS in cron/scheduler.py line 204-209.

This is a simple omission — whatsapp_cloud was added to the Platform enum and _HOME_TARGET_ENV_VARS but the _KNOWN_DELIVERY_PLATFORMS set was not updated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/cronCron scheduler and job managementplatform/whatsappWhatsApp Business adaptersweeper:risk-message-deliverySweeper risk: may drop, duplicate, misroute, or suppress messagestype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions