You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2024/10/21 05:43:00 UTC

[jira] [Commented] (AMQ-9593) Add a new option to delete all scheduled messages on startup

    [ https://issues.apache.org/jira/browse/AMQ-9593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17891398#comment-17891398 ] 

Jean-Baptiste Onofré commented on AMQ-9593:
-------------------------------------------

That's intentional (not a bug), because scheduled messages are supposed to be delivered later (scheduler is stateful, so easy for persistent messages). I don't think it would be a good idea to delete scheduled messages with using {{{}deleteAllMessagesOnStartup{}}}. I agree that we should have a specific property for scheduled messages.

> Add a new option to delete all scheduled messages on startup
> ------------------------------------------------------------
>
>                 Key: AMQ-9593
>                 URL: https://issues.apache.org/jira/browse/AMQ-9593
>             Project: ActiveMQ Classic
>          Issue Type: Improvement
>          Components: Job Scheduler
>            Reporter: Ken Liao
>            Assignee: Ken Liao
>            Priority: Major
>             Fix For: 6.2.0, 6.1.4
>
>
> Right now there is no way to delete scheduled messages on startup because it is stored separately from the KahaDB message store. As a result "deleteAllMessagesOnStartup" will not delete scheduled messages as expected.
> Nevertheless, it can be useful to provide an option to clean all scheduled message upon restart. This provides a way for users to reset the job scheduler.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact