Every Minute event #9516
-
It would be great it there was an event that Craft triggers every minute. The dev sets up a cron that calls a controller action to make this possible, and would then be able to do all kind of cool things when listening to that event. craft()->on('global.everyMinute', function(Event $event) {
}); |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
Issue can be closed. |
Beta Was this translation helpful? Give feedback.
-
I don't think it should be closed. Ideally, I think it should be even more like Laravel Scheduler. More flexibility, repeating jobs, etc. |
Beta Was this translation helpful? Give feedback.
-
I kind of agree, though Scheduler can be used for repeating jobs, you can
just re-create it after its run. I'll probably document some examples at
some point.
On Thu, 23 Mar 2017 at 12:23, Fred Calsen ***@***.***> wrote:
I don't think it should be closed. Ideally, I think it should be even more
like Laravel Scheduler.
More flexibility, repeating jobs, etc.
Josh's Scheduler is more for one-off jobs.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1260 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAYq-4A9wkOGaqMxoZhNtfOZ_wsivAhZks5romQ3gaJpZM4LyNzD>
.
--
-Josh
angell.io - specialist Craft CMS development and consultancy
|
Beta Was this translation helpful? Give feedback.
-
Going to leave it open, because we definitely have plans of doing something like this in core. |
Beta Was this translation helpful? Give feedback.
-
Great job on the plugin, @joshangell! |
Beta Was this translation helpful? Give feedback.
-
I like how Laravel Scheduler allow you to both run console commands, closures and Would be a ideal inspiration source for how this could work in the core. |
Beta Was this translation helpful? Give feedback.
-
I found https://github.com/omnilight/yii2-scheduling today. Looks like a good base to use for adding this. |
Beta Was this translation helpful? Give feedback.
-
We’re using that omnilight/yii2-scheduling package in Craftnet. Works well! |
Beta Was this translation helpful? Give feedback.
-
Marking this as a duplicate in favor of #8847. |
Beta Was this translation helpful? Give feedback.
Marking this as a duplicate in favor of #8847.