# Crons

Crons are schedules that can run unikernels according to a cron schedule or rate.

As of today crons are only supported on AWS.

To list all crons:

```
ops crons list
```

You need an IAM role that can assume for EventBridge Scheduler and have permissions for ec2. You might also wish to add SQS and Cloudwatch if you need to debug the schedule itself.

To create a new cron from an existing image:

```
export EXECUTIONARN="arn:aws:iam::123456789012:role/cronjobtest"
ops cron create ctest "rate(1 minutes)"
```

To delete a cron:

```
ops cron delete <name>
```

To enable a cron:

```
ops cron enable <name>
```

To disable a cron:

```
ops cron disable <name>
```


---

# 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.ops.city/ops/crons.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.
