5 months ago

scheduling commands from the database

Posted 5 months ago by FutureWeb

Hi Larapeeps,

Is it possible to schedule commands from a model lets say I have a feeds table which contains a list of feeds and the frequency they should be downloaded and parsed I want the kernel class to hit the database check if a feed is due to be downloaded pass its id perhaps to the command which can in turn call the download and queue the parsing of the file via an event listener once the download is completed.

The only part I can't seem to get my head around is scheduling the command in the kernel class and passing the model ID to the the command.

Any help would be greatly appreciated.

Please sign in or create an account to participate in this conversation.