GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Windmill Hub
  • Discord
  • Discussions
  • Windmill
  • Login

This view

  • Original page
  • New address

GeezerVison is showing hub.windmill.dev — Trigger maintenance run — render script | Windmill Hub

Back to Render integration
0

Trigger maintenance run

by hugo697
Published Oct 17, 2025

Trigger the scheduled maintenance run with the provided ID. Triggering maintenance is asynchronous. To check whether maintenance has started, use the [Retrieve maintenance run](https://api-docs.render.com/reference/retrieve-maintenance) endpoint. As maintenance progresses, the run's `state` will change from `scheduled` to other values, such as `in_progress` and `succeeded`.

Script render Verified
Use in Windmill

The script

Submitted by hugo697 Bun
Verified 407 days ago
All edits
Permalink
1
//native
2
type Render = {
3
	apiKey: string
4
}
5
/**
6
 * Trigger maintenance run
7
 * Trigger the scheduled maintenance run with the provided ID.
8

9
Triggering maintenance is asynchronous. To check whether maintenance has started, use the [Retrieve maintenance run](https://api-docs.render.com/reference/retrieve-maintenance) endpoint.
10

11
As maintenance progresses, the run's `state` will change from `scheduled` to other values, such as `in_progress` and `succeeded`.
12

13
 */
14
export async function main(auth: Render, maintenanceRunParam: string) {
15
	const url = new URL(`https://api.render.com/v1/maintenance/${maintenanceRunParam}/trigger`)
16

17
	const response = await fetch(url, {
18
		method: 'POST',
19
		headers: {
20
			Authorization: 'Bearer ' + auth.apiKey
21
		},
22
		body: undefined
23
	})
24
	if (!response.ok) {
25
		const text = await response.text()
26
		throw new Error(`${response.status} ${text}`)
27
	}
28
	return await response.text()
29
}
30

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.