Hi,
I have to reindex database so I have many Queued Tasks.
I see that TaskQueue doesn't do tasks that are in the queue.
Automatic Task Execution Enabled is flagged and and web page index.php?P=TaskQueue.
I see that I can use cron but I don't find any help how to setup it.
Is there any other option ?
Bye
Zeno Tajoli
Background task execution is driven off of page loads. If you leave a browser open to the Task Queue page and Automatic Task Execution Enabled is checked, it should reload that page every 30 seconds and eventually work its way through the queued tasks. Is the page not automatically reloading for you?
If you do want to use cron, some general info on setting up crontab entries can be found here. Usually you would set up an entry to run every five minutes, using either
wget
orcurl
to load a page, something like this:*/5 * * * * wget -q -O - 'http://mydomain.org/runtasks' > /dev/null
(With the URL for your site in place of
http://mydomain.org
, of course.)Hi,
the first problem is that I don't find any 'runtasks' in my CWIS 4.0 installed.
Can I create it by hand ?
> leave a browser open to the Task Queue page and Automatic Task Execution Enabled is checked, it should reload that page every 30 seconds and
> eventually work its way through the queued tasks.
>Is the page not automatically reloading for you?
The page reloads automatically but tasks are not done.
Bye
Zeno Tajoli
runtasks
is handled via a "clean URL", so it's actually remapped (via ApplicationFramework and mod_rewrite) toindex.php?P=RunBackgroundTasks
.For Task Queue, can you upload a screenshot of that page? That's probably the fastest way to pin down some of the details to help us figure out what's going on.
Hi,
I upload two screen shot of TaskQueue with the problem.
But I think to have find the solution:
vi /etc/php/7.0/apache2/php.ini
vi /etc/php/7.0/cli/php.ini
adding: date.timezone = Europe/Rome
My server as locale is en_US.UTF-8 but as timezone is CEST.
With correct timezone in php.ini, TaskQueue starts to work.
Pictures.zip