1. 22 Jan, 2009 1 commit
  2. 19 Nov, 2008 1 commit
  3. 14 Oct, 2008 1 commit
  4. 20 Feb, 2008 2 commits
  5. 19 Dec, 2007 1 commit
  6. 23 Nov, 2007 1 commit
    • Sebastien Robin's avatar
      Commit work done by Vincent · e2ff442c
      Sebastien Robin authored
        Make ActivityTool:Message.getObjectList simple to use: detect internaly 
      wether an expand method must be called, catch exception when object on which 
      the activity was executed cannot be found.
        Remove broadcast message support.
        Merge indexes on processing_node and processing columns on both message and 
      message_queue tables.
        Always use SQL server's time.
        Do not update processing node value when setting the message as being 
      processed.
        Commit SQL connection as soon as messages get assigned to reduce lock 
      duration.
        Make SQLDict ZSQLMethods support list of uids instead of single value per 
      call.
        Make ZSQLMethod handle processing_node differently if it's 0 or None (when 
      not passed as parameter, behave as if it's None).
        Do not force all parameters to be passed to SQLQueue_setPriority.
        Factorise SQL code inside <dtml-if> blocks.
        Allow to select ranges of lines in readMessageList with a custom offset.
        When reseting message processing state at first activity execution pass 
      after a node start, also reset the processing_node.
        Commit SQL connection as soon as messages are set to processing state, 
      mainly to make it visible outside current connection.
        Add a common class for SQL-using activity queues.
        CMFActivity/Activity/SQLDict.py
          Remove unused (and broken) prepareQueueMessage method.
          Replace a tab by spaces.
          Add ZSQLMethod wrappers for new ZSQLMethods.
          Split dequeueMessage into dequeueMessage, getProcessableMessageList, 
      finalizeMessage_Execution.
          Return True instead of 0 in case of an important error, in order to 
      prevent CMFActivity from doing infinite loops  over dequeueMessage when 
      something goes wrong.
        CMFActivity/Activity/Queue.py
          Allow caller to specify the current date and transmit it when recursing. 
      Fallback on DateTime (calculate just once) if not specified.
        CMFActivity/Activity/SQLQueue.py
          Precompute parameters in prepareQueueMessage to make it easier to add a 
      log when needed. Also reduces the distance with SQLDict's equivalent method.
          Add ZSQLMethod wrappers for new ZSQLMethods.
          Split dequeueMessage into dequeueMessage, getProcessableMessageList, 
      finalizeMessage_Execution.
          Return True instead of 0 in case of an important error, in order to 
      prevent CMFActivity from doing infinite loops  over dequeueMessage when 
      something goes wrong.
        Add scripts to monitor activity distribution.  
        Remove unused ZSQLMethods.
        Add new ZSQLMethods related to the new distribution scheme and SQL server 
      time grabbing.
      
      
      git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17759 20353a03-c40f-0410-a6d1-a30d3c3de9de
      e2ff442c
  7. 12 Jul, 2007 1 commit
  8. 11 Apr, 2007 1 commit
    • Yoshinori Okuji's avatar
      This big change optimizes the scheduling of active objects, · 1c300e5c
      Yoshinori Okuji authored
      and fix some bugs.
      
      The basic idea is to track a dependency graph to find executable
      messages quickly. This makes the activity system far more efficient,
      when you have many inter-dependent messages queued in the tables.
      
      Also, this obsoletes the time shifting in the schedulers,
      as executable messages can be found in a more efficient manner.
      So the activity parameter "at_date" should work expectedly.
      
      Now the API of validate methods in Activities return a
      list of message objects instead of a boolean value. Such
      a list contains messages that are depended upon by a given
      message.
      
      The validate method in Message accepts a new optional
      parameter, check_order_validation, to indicate whether
      order validation should be performed. The default behavior
      has not changed.
      
      getDependentMessageList is added to ActivityTool, Queue
      and Message. This method collects dependent message for
      a given message from all activities.
      
      There are some other subtle changes. Look at the diffs for
      more details.
      
      
      git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14039 20353a03-c40f-0410-a6d1-a30d3c3de9de
      1c300e5c
  9. 28 Mar, 2007 1 commit
  10. 23 Mar, 2007 1 commit
    • Yoshinori Okuji's avatar
      Some optimization. Here are the details: · 1764ba15
      Yoshinori Okuji authored
      * SQLDict_assignMessage.zsql
      
      Avoid unnecessary assignments. Reduce message size.
      
      * SQLDict_setPriority.zsql
      
      Reduce message size.
      
      * SQLDict_readMessageList.zsql
      
      Remove unnecessary GROUP BY.
      Add uid into ORDER BY so that messages are enumerated
      mostly in the order of insertions, which potentially reduces
      chances that messages will be reordered later.
      
      * SQLDict_readMessage.zsql
      
      Use DISTINCT and GROUP BY, only if necessary.
      Add uid into ORDER BY for the same reason as above.
      
      * SQLDict_createMessageTable.zsql
      
      Specify NOT NULL whenever possible to reduce data size.
      Use SMALLINT instead of INT for processing_node to reduce data size.
      Remove useless indexes to reduce the cost of UPDATE.
      
      
      
      git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13582 20353a03-c40f-0410-a6d1-a30d3c3de9de
      1764ba15
  11. 25 Mar, 2006 1 commit
  12. 06 Nov, 2005 1 commit
  13. 03 Nov, 2005 1 commit
  14. 28 Oct, 2005 1 commit
  15. 15 Sep, 2005 1 commit
  16. 13 Dec, 2004 2 commits
  17. 25 Jul, 2004 1 commit
  18. 15 Jun, 2004 1 commit
  19. 09 Feb, 2004 1 commit
  20. 08 Feb, 2004 1 commit
  21. 26 Jan, 2004 1 commit
  22. 25 Jan, 2004 2 commits
  23. 02 Jan, 2004 1 commit
  24. 10 Dec, 2002 1 commit