# Task Expiration

Task Expiration is a convenient feature that helps you manage your Infantry accounts more efficiently. It allows you to set an expiration date for specific Infantry accounts’ tasks, so they will automatically stop running on that date. This is especially useful if you're using Infantry accounts for a limited amount of time, such as for a client campaign. Without Task Expiration, you would have to manually track which accounts need to be deactivated and then turn them off one by one. Task Expiration can also be used to prevent tasks from running for too long. For example, if you have a task that is sending out a large number of direct messages, you can set an expiration date to ensure that it doesn't continue running indefinitely.

<figure><img src="https://lh7-us.googleusercontent.com/qZlWcMqpDY5wX-xdLv44BfzAHUl02hm9cDNfGeiALDlSxQzCHSuMyi8ZHhkTEmBQFdFXQ7jUYo2KYERBXpXfXHFWQJaGq0kEGuC1Q35WSrf-R1b3k5RTf1A1VSYmxDk0jq-lApRmEoibba0O3HPHTOk" alt=""><figcaption><p>Task Expiration preview</p></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.instainfantry.com/chapter-2-using-instainfantry/target-quality-tracking-and-debug-mode/task-expiration.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.
