Skip to content

Multiple schedule triggers: only first trigger added to workflow_schedule_plans table during publish #29945

@tjlindeman

Description

@tjlindeman

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.11.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Create a workflow with two schedule triggers (e.g., Daily and Weekly)
  2. Publish the workflow
  3. Query the database:

sqlSELECT * FROM app_triggers WHERE app_id = '<app_id>'; -- Shows 2 triggers
SELECT * FROM workflow_schedule_plans WHERE app_id = '<app_id>'; -- Shows only 1 trigger

✔️ Expected Behavior

Both triggers should appear in workflow_schedule_plans

❌ Actual Behavior

Only the first trigger is in workflow_schedule_plans. The second trigger never fires.

Workaround:
Manually insert the missing schedule plan into the database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions