Comments (7)
what is set to 15minutes? - this plugin doesn't have any scheduled tasks that you can adjust like that - it makes changes on user action/events.
Can you please provide more information on what process is running slowly?
from moodle-local_cohortauto.
Hi, yes we have it set as a CRON job that runs it every 15 minutes, we have now changed this to once a day in the early morning.
Is this unnecessary?
Please can I also as, we are using Moodle, 4, our sever provider is saying that it is down on the moodle website as only being compatible with Moodle 3, but we have used it with Moodle 4 for many months with no issues. So I can let them know, can you confirm that it does work with Moodle 4, or could this be the issue?
from moodle-local_cohortauto.
The sync users script is intended as a once off thing you can run on the cli to add existing users in the site based on your rules or if you change your rules after users have been created or if you have a process that inserts users directly into the db not using normal moodle apis. If you only use moodle ui or apis to insert users and your rules don't change you shouldn't need to run it on cron at all. Running it once a day would probably be enough(but we don't tend to run it at all as the clients that use it don't change their rules)
I'm not aware of any issues using it in 4.0
from moodle-local_cohortauto.
Can I PM you a link from our service provider, who needs you to check 1 line of code that is sucking up 68% of the server resoures.
from moodle-local_cohortauto.
Here is the code
840 xxxxxx 20 0 893824 456384 13120 R 68.6 0.7 10:17.01 /opt/plesk/php/7.4/bin/php /var/www/vhosts/xxxx/httpdocs/moodle/local/cohortauto/cli/sync_users.php
from moodle-local_cohortauto.
I don't engage with people "privately" to provide support/help with moodle unless it's part of a commercial agreement sorry. as mentioned above - we don't run this task on cron at all in our use of this plugin, we only run it ad-hoc as required - but the ruleset is static and doesn't change.
If your ruleset is changing regularly - just get them to set it to run once a day overnight. If your ruleset doesn't change, don't run it on cron at all.
from moodle-local_cohortauto.
Thank you.
from moodle-local_cohortauto.
Related Issues (20)
- "$PAGE->context was not set" when performing OAuth2 login HOT 7
- Looking for a way to create cohort based on user creation time HOT 6
- Force cohorts to update without logging in users HOT 2
- Can't delete generated cohorts HOT 1
- Support for 3.11? HOT 1
- Deprecated: Required parameter $result follows optional parameter $prefix in HOT 1
- allow match on cohortid HOT 1
- Compatible moodle 4.X ? HOT 1
- UI checks making unit tests failure HOT 1
- sync_users.php not working in moodle 4 HOT 3
- NULL value for column idnumber is not allowed on Moodle 4.1+ anymore HOT 1
- Problems when using the Plugin HOT 1
- Moodle 4.0 or 4.1 HOT 1
- Prevent warnings on empty emails HOT 2
- warning for $PAGE->context not set when logging in user HOT 2
- settings.php: curious why this plugin is not listed in the local plugin settings HOT 1
- cli/sync_users.php: show username being processed only if necessary HOT 2
- cli/sync_users.php cron_setup_user() function is deprecated HOT 2
- Moodle 3.9 issues HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-local_cohortauto.