# Vapor: Sub-Minute Scheduled Tasks

DevFeed: [Vapor: Sub-Minute Scheduled Tasks](<https://devfeed.tech/articles/vapor-sub-minute-scheduled-tasks-3977.md>)

Original publisher: [Read original article](<https://laravel.com/blog/vapor-sub-minute-scheduled-tasks>)

Author: Joe Dixon

Published: 2023-12-21T10:34:00Z

Content type: article

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [cli](<https://devfeed.tech/tags/cli.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [hosting](<https://devfeed.tech/tags/hosting.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [update](<https://devfeed.tech/tags/update.md>)

## AI overview

This article explains how Laravel Vapor supports sub-minute scheduled tasks in a serverless environment. Because AWS EventBridge normally triggers rules within a one-minute window rather than at the exact start of a minute, Vapor can be configured to invoke the scheduler through a command that waits for the next minute before starting. The article also notes that the CLI timeout must allow the scheduler to run for at least two minutes, with longer time potentially required for lengthy commands.

## Source excerpt

To invoke Laravel's internal scheduler, you must call the schedule:run Artisan command once every minute. In a traditional serverful hosting environment, you may achieve this using a utility such as cron.