Gerador de Expressões Cron e Agendamento de Tarefas
Gerador de Expressões Cron e Agendamento de Tarefas
Esta ferramenta opera 100% do lado do cliente. Seus códigos, tokens, credenciais e dados confidenciais nunca saem do seu navegador nem são transmitidos a servidores remotos.
Fórmula e Método de Cálculo
Cron Format = [Minute] [Hour] [Day of Month] [Month] [Day of Week]
The standard Unix syntax utilizes 5 fields separated by spaces. An asterisk * acts as a wildcard meaning 'every', while a slash / indicates a step value (like */5 for every 5 minutes).
Melhores Práticas e Dicas
- Avoid Overlapping Wildcards: Setting a cron to `* * * * 1` runs the job every single minute on Mondays. If you meant 'once at midnight on Mondays', the correct syntax is `0 0 * * 1`.
- Use Step Values for Throttling: Never run heavy database exports at `* * * * *` (every minute). Use `*/15 * * * *` to space the execution out to every 15 minutes, allowing the CPU to recover.
- Mind the Server Timezone: Cron daemons execute based on the server's local system time (usually UTC), not your local timezone. Always offset your hours accordingly when writing schedules.