Hello, it seems I'm having the same issue as in this old thread: https://moodle.org/mod/forum/discuss.php?d=269372
I have made a local plugin. It is installed and shows up under plugins as well as created its initial tables etc, but the task is not appearing in task list.
I have made tasks before on activity plugins and they where working fine, but this is my first time making a local plugin. I have basic structure ready:
classes/task/unlocklesson_task.php
```
class unlocklesson_task extends scheduled_task {
public function get_name()
{
return get_string('unlocklesson_task', 'local_pluginname');
}
public function execute()
{
// TODO
}
}
```
db/tasks.php
```
$tasks = [
// Lesson unlock task
[
'classname' => 'pluginname\task\unlocklesson_task', // Tried with local_pluginname as well
'blocking' => 0,
'minute' => '0',
'hour' => '0',
'day' => '*',
'month' => '*',
'dayofweek' => '*',
],
];
```
But no matter what I change (reinstall, version bumps, cache clears, name changes) the task does not appear under other tasks. Any idea why?
PS: Using Moodle 3.9