# Routines scheduler

The routines scheduler could act as a solution for users that won't be available on their Computer for drop time. With the routines scheduler you can define a series of tasks that will be run automatically on your command / pre-defined time.

Running the routines scheduler requires you to have correctly filled .csv file in your "tasks" folder, which you will find in your main PepperScripts folder.

Please don't forget to give your instances a string value as name, even if you don't want to exclude/ include instances (we will talk more about that in a minute), such as "A" "peppermain" or whatever you desire. Do that by clicking on the pepper popup and select the settings page.

We will use this example file to show you some of the already available functions:

{% file src="/files/PpIlOTxneWDTz0T1nBTh" %}
Routines scheduler example.csv
{% endfile %}

```
SITE	TIME	        ACTION	        VALUE	                                          INCLUDED INSTANCES	EXCLUDED INSTANCES
BROWSER	08:25:00	OPEN TAB	https://www.zalando.de/	
ZALANDO	08:25:20	START PRELOAD	zalando	
BROWSER	08:34:55	OPEN TAB	https://www.zalando.de/schuhe/?q=NI112O0P7-A11	  PPR-QSP
BROWSER	08:37:00	CLOSE TAB	zalando
```

These are the lines included in the file - and what will happen is quite self-explainatory:

At 8:25, Pepper will open the german Zalando homepage and start the preload 20s later. At 8:34:55, which is 5s before drop, Pepper will open up a product page only for the instance named `PPR-QSP` and let it run. If you haven't copped initial, it will start monitoring with the right settings. By 8:37 the tab will be closed

If you look closely, you can see columns for INCLUDED INSTANCES and EXCLUDED INSTANCES - this refers the name of your instances, which you can set [here](/getting-started/options/webhook.md). If you leave those options empty, all connected instances will be effected.

Following commands are available to you right now - feel free to experiment with them!

Site: **BROWSER**\
Actions:\
\- OPEN TAB (needs an URL as value)\
\- CLOSE TAB (you can use a substring as value - see below for explanation)\
\- RELOAD TAB (you can use a substring as value - see below for explanation)\
\
Site: **ZALANDO**\
Actions:\
\- START PRELOAD\
\- CLEAR CART\
\- FORCE START\
\
Using a substring as value means that you can enter value like "zalando" and all tabs that have this word in their URL will be affected by the command.

Everything that happens in the routines scheduler will be logged inside the [logger](/getting-started/options/logger.md).


---

# 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.pepperscripts.com/getting-started/cli/routines-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.
