-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement kbss-cvut/termit-ui#535] Add maintenance endpoint that a…
…llows an administrator to clear the long-running tasks queue. All non-running throttled futures are cancelled and non-running tasks are removed from the long-running task registry.
- Loading branch information
Showing
5 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
src/main/java/cz/cvut/kbss/termit/event/ClearLongRunningTaskQueueEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package cz.cvut.kbss.termit.event; | ||
|
||
import org.springframework.context.ApplicationEvent; | ||
|
||
/** | ||
* Indicates that the long-running task queue should be cleared. | ||
*/ | ||
public class ClearLongRunningTaskQueueEvent extends ApplicationEvent { | ||
public ClearLongRunningTaskQueueEvent(Object source) { | ||
super(source); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters