# Workspace scheduler

Terrakube allows to schedule a job inside workspaces, this will allow to execute a specific [template](../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://2194998553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR6VsmuTZWhfdwP7uD6e0%2Fuploads%2Fgit-blob-c83397a6ed7caa9abc2c1d5c82439d7c6cd1c5fc%2Fimage%20(170).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://2194998553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR6VsmuTZWhfdwP7uD6e0%2Fuploads%2Fgit-blob-ea3a68e780f1f33c35169f42e278be104d6b8800%2Fimage%20(230).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://2194998553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR6VsmuTZWhfdwP7uD6e0%2Fuploads%2Fgit-blob-3700a0af587b9c0bb7467ac43db7e7f3a767281e%2Fimage%20(122).png?alt=media" alt=""><figcaption></figcaption></figure>
