# Workspace scheduler

Terrakube allows to schedule a job inside workspaces, this will allow to execute a specific [template](https://docs.terrakube.io/user-guide/organizations/templates) in an specific time.

To create a workspace schedule click the "schedule" tab and click "Add schedule" like the following image.

<figure><img src="https://4014930676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfAN3V983Y82_trlbcu%2Fuploads%2Fgit-blob-c83397a6ed7caa9abc2c1d5c82439d7c6cd1c5fc%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

This is usefull for example when you want to destroy your infrastructure by the end of every week to save some money with your cloud provider and recreate it every monday morning.

Example.

Lets destroy the workspace every friday at 6 pm

{% hint style="info" %}
Cron expression will be 30 18 \* \* 5
{% endhint %}

<figure><img src="https://4014930676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfAN3V983Y82_trlbcu%2Fuploads%2Fgit-blob-ea3a68e780f1f33c35169f42e278be104d6b8800%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

Lets create the workspace every monday at 5:30 am

{% hint style="info" %}
Cron expression will be 30 5 \* \* 1
{% endhint %}

<figure><img src="https://4014930676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfAN3V983Y82_trlbcu%2Fuploads%2Fgit-blob-3700a0af587b9c0bb7467ac43db7e7f3a767281e%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.terrakube.io/user-guide/workspaces/workspace-scheduler.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
