mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #55088
[Bug 1840195] A patch has been submitted for review
Patch for "master" branch: https://reviews.mahara.org/10263
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1840195
Title:
Add a function to check if a cron callfunction needs to run before
actually executing it
Status in Mahara:
New
Bug description:
There are cron functions that run many times a day that don't need to run that often but they need to monitor a condition.
One of these is for example the user_login_tries_to_zero that resets the logintries value in the usr table to be 0, so the user can try to login again if they failed 5 times. This doesn't need to run if there are no values to reset.
If we have a way to checks if the cron function needs to run or not,
and we also work with elastic search, we can check if the triggers
need to be dropped. This way we're reducing the times we drop and
recreate elasticsearch triggers.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1840195/+subscriptions
References