+ ip: req.ip,
+ activityPubMessagesWaiting: InboxManager.Instance.getActivityPubMessagesWaiting()
+ } as Debug)
+}
+
+async function runCommand (req: express.Request, res: express.Response) {
+ const body: SendDebugCommand = req.body
+
+ if (body.command === 'remove-dandling-resumable-uploads') {
+ await RemoveDanglingResumableUploadsScheduler.Instance.execute()
+ }
+
+ return res.status(HttpStatusCode.NO_CONTENT_204).end()