kestra-io / kestra

:zap: Workflow Automation Platform. Orchestrate & Schedule code in any language, run anywhere, 500+ plugins. Alternative to Zapier, Rundeck, Camunda, Airflow...
https://kestra.io
Apache License 2.0
11.92k stars 1.01k forks source link

Triggers logs - flicker on page refresh #4648

Closed smunteankestra closed 1 month ago

smunteankestra commented 2 months ago

Describe the issue

Step 1 : Run the flow bellow (basically it logs a string every minute) Step 2: Navigate to triggers (on the same flow) Step 3 : Refresh the page/turn on Autorefresh

Expected: See Logs: on start of the trigger, then the message Actual: logs flicker

Flow:

id: APIFlow_b7795389-449a-43ed-bc3f-ade9ad2c4c0c
namespace: tutorial
description: A simple flow to test real-time triggers and tasks.
tasks:
- id: echo
  type: io.kestra.plugin.core.log.Log
  message: "This flow was triggered at {{ trigger.date }}"
- id: if_large
  type: io.kestra.plugin.core.flow.If
  condition: "{{ 1 == 1 }}"
  then:
  - id: log_notify
    type: io.kestra.plugin.core.log.Log
    message: "Condition met: 1 is greater than or equal to 1"
  else:
  - id: log_no_notify
    type: io.kestra.plugin.core.log.Log
    message: "Condition not met: 1 is less than 1"
triggers:
- id: schedule
  type: io.kestra.plugin.core.trigger.Schedule
  cron: '* * * * *'

Environment

anna-geller commented 2 months ago

I can reproduce the issue — the logs for the Schedule trigger are showing but then they immediately disappear for some reason.

https://share.descript.com/view/kOhbHO0e6IV

MilosPaunovic commented 4 weeks ago

Adding a note here that the original solution for this issue was changed in https://github.com/kestra-io/kestra/pull/5307, but as there were couple of commits related to this section, we should re-test this one again sometime soon and re-open if necessary @smunteankestra.