help me configuring cron job for fof/sitemap - flarum
-
i am setting a corn job for flarum fof sitemap
the first corn job is for reference and it is working correctly
*/1 * * * * cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum queue:work --stop-when-empty
new corn job suggestion needed for sitemap and i modified considering this reference at flarum’s sitemap page
*/1 * * * * cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache --stop-when-empty
should i just need set as
cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache --stop-when-empty
or
cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache
do I need to add the timer?
-
phenomlabreplied to Hari on 10 Sept 2021, 23:51 Edited 11/09/2021, 00:52 last edited by phenomlab 9 Nov 2021, 00:52
@hari this one will work fine
cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache You’ll need to run a schedule. Typically, once every few hours should be enough. It doesn’t need to run continuously
-
Harireplied to phenomlab on 10 Sept 2021, 23:54 Edited 11/09/2021, 00:56 last edited by Hari 9 Nov 2021, 00:56
@phenomlab said in help me configuring corn job for fof/sitemap - flarum:
cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache
so we need not to add something like
*******24 (stars) something like that? 24hr
just the command which you have mentioned will be automatically called every 24hr? without the stars? (trying to understand corn jobs)
-
@phenomlab that is really one easy and interesting website to understand corn jobs
* 23 * * * cd /home/master/applications/aa/public_html/ask && /usr/bin/php flarum fof:sitemap:cache --write-xml-file
just need final confirmation, so will this line make to run once for every 23 hour? (once per day?)
when i enter 24hr it is not showing 24, so i have selected 23hr
-
phenomlabreplied to Hari on 11 Sept 2021, 00:04 Edited 11/09/2021, 01:04 last edited by phenomlab 9 Nov 2021, 01:04
@hari yep. Looks good. 24 would in fact be 00
-
@hari said in help me configuring corn job for fof/sitemap - flarum:
that is really one easy and interesting website to understand corn jobs
Yes, super easy, and a good reference guide I’ve used for years
-
-
-
Old
*/2 * * * * cd /home/master/applications/jmzhcbrggs/public_html/ && /usr/bin/php flarum schedule:run >> /dev/null 2>&1 */1 * * * * cd /home/master/applications/jmzhcbrggs/public_html/ && /usr/bin/php flarum queue:work --stop-when-empty new
*/2 * * * * cd /home/ask/public_html/ && /usr/bin/php flarum schedule:run >> /dev/null 2>&1 */1 * * * * cd /home/ask/public_html/ && /usr/bin/php flarum queue:work --stop-when-empty are these correct for my Virtualmin environment?
-
@phenomlab am i entering correctly sorry for asking step to step i am not sure how many extensions i need to fix more for flarum
-
Failed to save cron job : The user 'schedule' is not allowed to access cron
now opening flarum schedule instructions
do i need to install these via ssh? or we already have corn?
got it i have to mention user name
-
@phenomlab does these settings mean run for every one min?
when i am using like this its not running for every one minute
edit
- Solved
-
@phenomlab how to select 1min intervel?
-
@phenomlab what does this setting mean? will it always runs?
@phenomlab said in help me configuring cron job for fof/sitemap - flarum:
you should select every single minute from 00 - 59
could you share one example setting for 2min
-
@Hari said in help me configuring cron job for fof/sitemap - flarum:
could you share one example setting for 2min
If you want to select every two minutes, you need to select 00, 02, 04 etc until you reach 58
Did this solution help you?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (ether email, or push notification). You'll also be able to save bookmarks, use reactions, and upvote to show your appreciation to other community members.
With your input, this post could be even better 💗
RegisterLog in
1/36