Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-57913

Auth db - convert to scheduled task

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Testing the auth db sync tool

      Make sure that the auth db plugin is disabled.
      once upgraded to the new version of the plugin, run the following on the command line in the moodle root dir:

      php admin/tool/task/cli/schedule_task.php --execute="\auth_db\task\sync_users"
      

      Expected command line output:

      Execute scheduled task: Synchronise users task (auth_db\task\sync_users)
      auth_db plugin is disabled, synchronisation stopped2... used 0 dbqueries
      ... used 0.17630481719971 seconds
      

      Setup moodle to use authentification with external DB.
      Run the CLI command again
      Expectation - users are created in moodle

      Show
      Testing the auth db sync tool Make sure that the auth db plugin is disabled. once upgraded to the new version of the plugin, run the following on the command line in the moodle root dir: php admin/tool/task/cli/schedule_task.php --execute="\auth_db\task\sync_users" Expected command line output: Execute scheduled task: Synchronise users task (auth_db\task\sync_users) auth_db plugin is disabled, synchronisation stopped2... used 0 dbqueries ... used 0.17630481719971 seconds Setup moodle to use authentification with external DB. Run the CLI command again Expectation - users are created in moodle
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57913_auth_db_sync_task_master

      Description

      Auth db currently has a cli task which should probably be a scheduled task:

      auth/db/cli/sync_users.php

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/17