Help Center/ Huawei Cloud Astro Zero/ FAQs/ Application Backend Development/ Why Does the Event-Triggered Flow Not Run After an Event Is Sent?
Updated on 2025-08-14 GMT+08:00

Why Does the Event-Triggered Flow Not Run After an Event Is Sent?

Description

After an event is sent, the event-triggered flow and the associated state machine did not run.

Solution

  1. Check whether the flow has been activated.

    • If the fow is not activated, click above the flow editing area to activate it.
    • If yes, go to 2.

  2. Check whether the event is enabled.

    • If the event is not enabled, click the enable button on the basic information tab page of the event to enable the event.
    • If yes, go to 3.

  3. On the subscription tab page of the event, check whether the flow exists in the subscriber list.

    • If not, check whether the startup type of the flow is Event Trigger and whether the triggering event is correctly configured.
    • If yes, go to 4.

  4. Use the log tracing function to further analyze the logs.

    1. On the Huawei Cloud Astro Zero console, click Access Homepage to go to the application development page.
    2. In the upper left corner of the page, click and choose Environments > Environment Configuration.
    3. On the environment configuration page, click on the right to enter the log tracing page.
      Figure 1 Accessing the log tracing page
    4. Set tenant-level complete logs and click to enable log tracing.
      Figure 2 Enabling log tracing
    5. On the event list page shown in Figure 3, test the sending of the event.
      Figure 3 Testing event sending
    6. View logs to check whether the fault is caused by incorrect parameters or abnormal process execution. If yes, rectify the fault and try again.

  5. If the flow still cannot be triggered after the event is sent, the Kafka may be abnormal or messages are stacked. In this case, contact O&M personnel.