I have a web app powered by Laravel that is set up on AWS ECS. I would need to run an artisan command as a cronjob.
I'm looking at "Scheduled Tasks" in ECS Cluster configuration. I can launch new tasks following the "Scheduled Tasks (Cron)" documentation on AWS. I'm using the Laravel's Task Definition in the Target which I use for web services & it has two tasks.
- Not sure how I can invoke the artisan command
- The scheduled task seems running forever
Any help would be greatly appreciated. Thank you.