Run a recurring task
Tasks & Schedules
Recurring work in VortexHQ is done by Crew: agents that run on a schedule, or when something happens, on this computer. Crew replaced the earlier Scheduled screen. This guide sets up a first recurring task and explains the check that starts an agent only when there is work. The Crew guide covers the agent's own copy, its rights, event triggers and notifications.
- If you used Scheduled tasks before
- Create the first recurring task
- Start the agent only when there is new work
- Understand timing and interruption
- Review and maintain recurring work
- Choose work that can finish unattended
- Keep schedules separate from app processes
- Related guides
If you used Scheduled tasks before
Your schedules are now Crew agents. The controls have other names:
| Before | Now |
|---|---|
| Scheduled in the sidebar | Crew under the sidebar search |
| New scheduled task | New agent |
| Check for work before starting the agent | Where the work comes from → My own check |
| Pause | The on/off switch of the agent |
| Open conversation | Open the chat on a run |
| Delete schedule | Delete agent |
Create the first recurring task
- Open the project and select Crew under the sidebar search.
- Select New agent.
- Under The job, enter a Name and write the task in What should it do? Give it a clear end, for example: "Inspect this project's open local work and summarize the next useful step. Do not change files or contact external services."
- Under When it runs, keep On a schedule and choose Every day at a time, with the days you want, or Repeat after an interval. A daily time uses the computer's time zone; Advanced → Timezone takes another IANA timezone, such as
Europe/Sofia. - Under Where it works, choose the Agent. Leave Model empty to use Agent default.
- Select Try one run now to check the account, provider and project before you rely on a later run. Save and start turns the agent on without running it.
A new agent starts with Supervised — ask for approval. In a Git project it works in its own copy on its own branch by default, so your folder is not touched; see the Crew guide.
Start the agent only when there is new work
Under Where the work comes from, choose My own check to run a small script first. The agent starts only when the script prints new data, so a day without work uses no provider allowance. While the script runs, the agent shows Checking for work.
- Add a script to the project, such as
scripts/check-work.py, that prints the items needing attention and nothing otherwise. - Enter its path in Check script, any Arguments (one per line) and a Check timeout in seconds from 1 to 300; the default is 30.
- Save, then use Run now to try it.
| Check result | What happens |
|---|---|
| No output | The run is skipped: No data. The agent was not started. |
| The same output as the previous check | The run is skipped: No new data. The agent was not started. The history shows Nothing new — did not start. |
| New output | The agent starts with that output attached as untrusted data. |
| Error, non-zero exit or timeout | The run fails and the agent does not start. The agent stays on. |
| Script changed since you saved the agent | The run is interrupted and the agent is turned off until you edit and save it again. |
Shell, JavaScript, Python and PHP scripts are supported, and PowerShell on Windows. The project must have a local folder. Up to 64 KiB of output is read and recognizable secrets are masked; still avoid printing credentials. Saving the agent authorizes this script to run on the schedule, so keep it read-only and quick. Run now runs the check again and starts the agent even when the data has not changed.
Understand timing and interruption
VortexHQ checks for due work every 15 seconds and allows four automatic runs at a time, deferring others. VortexHQ must be open, signed in with the Vault unlocked, and the computer awake. An agent that missed its time gets one catch-up run instead of every missed one. For daily schedules, a daylight-saving gap uses the next valid time and a repeated clock time runs once.
Failed runs are not automatically retried; the next scheduled run still happens. If VortexHQ closes while a run is in progress, that run is marked Interrupted and the agent is turned off for review. Read what the run already did before choosing Run now; some external actions may have completed before the interruption. After an app update or a restart of the computer, the agent stays on.
Stop a run after (minutes) limits how long one run may take; the default is 60.
Review and maintain recurring work
Select the agent to see its runs by day. Each run has Open the chat for the full conversation. Answer a question or approval in that chat; a timer does not approve an action for you. Decisions about committing, pushing or merging wait under Needs you.
Turn the agent off with its switch before changing a task you no longer want to run automatically. Edit changes it and Delete agent removes it; its chats and the work already done stay.
Crew agents and their run history are stored on this computer and are not cloud-synchronized. A synced chat does not make another computer run the same agent, and there is no remote runner that takes over.
Choose work that can finish unattended
Start with a read-only summary of the project's tests, recent changes or captured development errors. Say which resources the task may use. A recurring instruction is not a separate permission to change a remote database, send a message or publish the app. The provider connection, its allowance and the local folder must still be available when the run starts.
Keep schedules separate from app processes
A queue worker or development server is a process started with the project. A Crew agent starts an agent conversation. Keep the app's services running through its project commands and use Crew for a bounded task. Closing VortexHQ or letting the computer sleep prevents a run from starting on time.