Coder Social home page Coder Social logo

Comments (7)

danmarsden avatar danmarsden commented on July 29, 2024

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.

wbuk avatar wbuk commented on July 29, 2024

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.

danmarsden avatar danmarsden commented on July 29, 2024

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.

wbuk avatar wbuk commented on July 29, 2024

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.

wbuk avatar wbuk commented on July 29, 2024

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.

danmarsden avatar danmarsden commented on July 29, 2024

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.

wbuk avatar wbuk commented on July 29, 2024

Thank you.

from moodle-local_cohortauto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.