# Scheduled Tasks/ Cronjobs

### Check for expired points

As described in [point expiration](/en/plugins/bonus-system/installation.md#point-expiration), you can specify a period after which unused bonus points automatically expire. This calculation is executed each time the customer logs in, however you can also run the check via the command line, either manually or using a cronjob:

```
./bin/console prems:bonus-system:set-expired-points
```

### Bonus points activation

You can configure this activation process in the settings for automatic [point activation](/en/plugins/bonus-system/installation.md#bonus-point-activation). If the defined conditions are met, the customer receives the points either after logging in or when the scheduled task is automatically performed by Shopware. \
The task p*rems\_bonus\_system.bonus\_point\_activation\_task* is automatically created in Shopware upon plugin installation, and typically, no adjustments are needed here.&#x20;

### E-Mail notification for expiring points

If you have [configured it](/en/plugins/bonus-system/installation.md#point-expiration) and a reminder e-mail before the points expire was set up, the scheduled task *prems\_bonus\_system.points\_expiration\_notification\_task* is executed automatically by Shopware.\
A customer with expring points will get a notification e-mail automatically.


---

# 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.premsoft.de/en/plugins/bonus-system/scheduled-tasks-cronjobs.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.
