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

Auth db - convert to scheduled task

    XMLWordPrintable

Details

    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • MOODLE_33_STABLE
    • MDL-57913_auth_db_sync_task_master
    • 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

    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

              brudinie guy thomas
              brudinie guy thomas
              Adrian Greeve Adrian Greeve
              Andrew Lyons Andrew Lyons
              Andrew Lyons Andrew Lyons
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                15/May/17