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

Create a lock holding CLI script

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.10
    • Fix Version/s: None
    • Component/s: Administration, Tasks
    • Affected Branches:
      MOODLE_310_STABLE

      Description

      Sometimes when working with integrations you want to make sure a particular task or lock is not running while some other part of the integration is running at the same time. It would be nice to have a simple cli script which takes an arbitrary lock key and just gains and holds the lock until it receives a sigint or an optional timeout.

        Attachments

          Activity

            People

            Assignee:
            brendanheywood Brendan Heywood
            Reporter:
            brendanheywood Brendan Heywood
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: