Tricky
Tricky

Reputation: 4516

Can you Schedule a Gitlab Runner?

Is it possible to schedule the uptime on a runner? We have a machine that is used heavily for other non-gitlab jobs during the day, so would only like it only accept jobs overnight, as we used to have on jenkins. Is this possible? If so - how?

Upvotes: 0

Views: 138

Answers (1)

Amityo
Amityo

Reputation: 6341

You can use gitlab api to activate or disable runners. see the documentation

For example:

PUT /runners/:id 

active: false

Upvotes: 1

Related Questions