You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Workflow archive deletion shows Retry deletion while the task is still running #44202
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
As the workspace owner, open Settings → Workflow Log Archives.
Confirm deletion of an archived month whose deletion takes more than one minute.
Leave the page open while the backend still reports pending or processing.
After one minute, observe that the action changes from Deleting to Retry deletion.
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.
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]
Activity
dosubot commentedon Oct 16, 2026
The existing polling already follows backend state: it refreshes every three seconds while any month is
pendingorprocessing. 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_DELAYanddeletionRetryAvailable, deriveisDeletingfrom the mutation being pending or backend deletion being active, and removecanRetryDeletionfrom 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
failedinstead. Keep the existing test that verifies polling throughpending→processing→ month removal, then stops. [7]To reply, just mention @dosu.
Share context across your team and agents. Try Dosu.