@timberwolf If tasks are managed by the user, how do they determine what logic is executed? Is there a predefined list of tasks they can pick from and schedule? Or are they specifying their own logic to be ran some how?
Scheduled tasks
Hello, I am building some functionality in a Lumen API in which users will be able to set scheduled tasks to run on a set frequency (daily, weekly, monthly, quarterly, whatever). Users will also be able to pause, cancel, and edit some limited functionality of the scheduled jobs; which means I'll probably have to store a record for the task/job and have CRUD functionality associated with it, and the ability to adjust the frequency.
I was looking into Task Scheduling in the Laravel docs and the helper methods for task scheduling frequency options are exactly what I'm looking for. But, these seem like something that are hard-coded in the Kernel class's schedule() method for static application tasks which are set in version control, etc.
I am currently looking into Queues and getting my head wrapped around what this component has to offer. Maybe some combination of Task Scheduling and Queues might help me to create some sort of dynamic user-defined tasks/jobs?
Anyway, thought I would ask the experts while I'm digging into Queues. Am I on the right track and might be able to leverage some combination of Scheduled Tasks & Queues, or do neither of these seem like a good option and I'll have to write my own functionality from scratch?
T.Y.!
Please or to participate in this conversation.