You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i am quite new to Leantime and i'm not sure whether i configured everything correctly.
During setup i have configured logging to be enabled to ensure i did not bork something up. However, i have noticed that on each refresh cron is being run. Then i checked out the page source and found quite an ugly piece of code
let now = Date.now();
let lastCronExecution = localStorage.getItem("lastCronRun");
if(Number.isInteger(lastCronExecution)){
var difference = Math.floor((now - lastCronExecution) / 1000);
if(difference > 300) {
jQuery.get('https://project.io/cron/run');
localStorage.setItem("lastCronRun", Date.now());
}
}else{
jQuery.get('https://project.io/cron/run');
localStorage.setItem("lastCronRun", Date.now());
}
//1 min time to run cron
setInterval(function(){
jQuery.get('https://project.io/cron/run');
localStorage.setItem("lastCronRun", Date.now());
}, 300000);
});
Now, is this intentional to be like this in production ready app? Or i have missed something in configuration that would let me run the cron in my crontab on my server via php bin/leantime schedule:run like mentioned in configuration
In the .env file there are no mentions of anyhthing "cron" related.
And a question: are the emails that are invoked synchronously (ie: creating new user) added to cron job queue too? Or that one is performed right on click?
EDIT: nevermind, i found there is config called $poorMansCron by writing it into config.php
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, i am quite new to Leantime and i'm not sure whether i configured everything correctly.
During setup i have configured logging to be enabled to ensure i did not bork something up. However, i have noticed that on each refresh cron is being run. Then i checked out the page source and found quite an ugly piece of code
Now, is this intentional to be like this in production ready app? Or i have missed something in configuration that would let me run the cron in my crontab on my server via
php bin/leantime schedule:runlike mentioned in configurationIn the .env file there are no mentions of anyhthing "cron" related.
And a question: are the emails that are invoked synchronously (ie: creating new user) added to cron job queue too? Or that one is performed right on click?
EDIT: nevermind, i found there is config called $poorMansCron by writing it into config.php
Beta Was this translation helpful? Give feedback.
All reactions