Skip to content
Snippets Groups Projects
  1. Oct 19, 2023
  2. Jul 03, 2023
  3. Dec 08, 2022
  4. Nov 03, 2022
  5. Oct 27, 2022
  6. Oct 26, 2022
  7. Oct 17, 2022
    • totten's avatar
      (WIP) CiviQueueWatcher - Use "run as" property to manage workers · d92fe089
      totten authored
      == Background
      
      The "PipePool" has named "contexts".  Workers are restricted to only running
      tasks for one context.  (If you need to run tasks in a new context, then you
      need a new worker.)
      
      The "CRM_Queue_Task" has the notion of "run as" -- where you specify who
      should execute the task; eg "contact=100,domain=1".
      
      == Before
      
      Identities are not used.  All tasks are assigned to the same context, even
      if they have different identities.
      
      == After
      
      The "run as" data is used to assign the "context" name, eg
      
      * Task definition: "runAs = [contactId=>100, domainId=>1]"
      * Context name: "c=100,d=1"
      
      Thus, tasks will different identities will always be handled by different workers.
      
      FIXME: when starting a worker, we need to set the active identity.
      d92fe089
    • totten's avatar
      Add TaskSplitter · 5cbde829
      totten authored
      5cbde829
  8. Oct 13, 2022
Loading