Skip to content

Workflow archive deletion shows Retry deletion while the task is still running #44202

Closed

Description

@hjlarry

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

Dify Cloud, reported after the hotfix/1.17.1-fix.4 rollout. The same frontend logic is present on main.

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. As the workspace owner, open Settings → Workflow Log Archives.
  2. Confirm deletion of an archived month whose deletion takes more than one minute.
  3. Leave the page open while the backend still reports pending or processing.
  4. After one minute, observe that the action changes from Deleting to Retry deletion.
  5. Refresh the page: the action returns to Deleting. The user confirmed that deletion eventually completes successfully.

The frontend currently enables retry after a local 60-second timer, even when polling continues to report an active deletion. Reloading resets that timer. This behavior is also reproduced by the existing component tests that expect a retry after one minute.

✔️ Expected Behavior

Keep the existing Deleting loading state and disable repeat deletion while the backend reports pending or processing, regardless of elapsed time. Continue polling until the task completes or explicitly fails. Show Retry deletion only for failed; remove the month after successful deletion.

No additional timeout or waiting message is needed.

❌ Actual Behavior

The action offers Retry deletion after one minute without a backend failure. Users interpret this as a failed deletion, although the original task is still running and can finish successfully. Refreshing the page temporarily restores the correct loading state.

From Codex

Activity

  1. added
    🐞 bug
    on Oct 16, 2026
  2. added
    review: top
    on Oct 16, 2026
  3. dosubot commented on Oct 16, 2026

    @dosubot

    The existing polling already follows backend state: it refreshes every three seconds while any month is pending or processing. The timer only changes the row’s loading state and retry eligibility, so the polling interval does not need to change. [1] [2]

    For the fix, remove DELETION_RETRY_DELAY and deletionRetryAvailable, derive isDeleting from the mutation being pending or backend deletion being active, and remove canRetryDeletion from both the retry label and confirmation-button guard. Those are the places where elapsed time currently overrides the backend status. [3] [4] [5] [6]

    The two timer-based tests should become regressions asserting that both active statuses remain disabled beyond 60 seconds, with retry tested against failed instead. Keep the existing test that verifies polling through pending → processing → month removal, then stops. [7]

    To reply, just mention @dosu.


    Share context across your team and agents. Try Dosu.

    Leave Feedback Learn about dify with Dosu

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

    review: top🐞 bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions