Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 142
    • Merge requests 142
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • erp5erp5
  • Merge requests
  • !869

CMF Activity: processing node families

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Vincent Pelletier requested to merge vpelletier/erp5:cmf_activity_families into master May 16, 2019
  • Overview 13
  • Commits 2
  • Pipelines 0
  • Changes 7

Add the notion of processing node families to CMFActivity.

Families are groups of processing nodes, and can be chosen when spawning an activity. An activity with a family chosen will only be executed by processing nodes members of that family. Processing nodes member of a family will still process activities which do not have a family chosen.

This reuses the node parameter of activate and corresponding column. Internally, if produces strictly negative integer values.

Families can be modified (nodes added & removed) anytime, created anytime. The effect may not be immediate, but it is safe to change.

Families can be deleted or empties (remove all nodes) anytime, but it should be done only once there are no activity left for that family. Otherwise, these activities will never be executed, which can in turn prevent other activities from being executed if they depend on those orphaned activities.

Spawning an activity for a family which does not exist raises an exception.

There is currently no integration with BusinessTemplates: this means family creation is the entire responsibility of the admin who installs the business template. This restricts processing node family usefulness, so this should be done - though maybe in a separate patch stack ? The idea would be:

  • declare families needed as a new business template property
  • upon installation & upgrade bringing new families, create them and assign all current processing nodes to each
  • upon uninstall & upgrade removing families, do nothing (?)

@jm: Why "UNION ALL", especially in the priority query ? Why only one "UNION" is tagged as "ALL" in each query ?

/cc @tb @romain @jerome

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: cmf_activity_families
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7