~loyalinfo/openerp-tools/trunk

« back to all changes in this revision

Viewing changes to openerp-runbot/openerprunbot/server.py

  • Committer: Anonymous Coward on runbot
  • Author(s): Olivier Dony
  • Date: 2013-10-29 23:12:18 UTC
  • Revision ID: anonymous_coward_on_runbot-20131029231218-jr6o7ddewp1dy42m
[FIX] runbot: properly stop running jobs when deleting group

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
    group_id = (team, group)
98
98
    group = openerprunbot.runbot.groups.get(group_id)
99
99
    if group:
100
 
        if group.is_sticky():
 
100
        if group.sticky:
101
101
            print 'delete', team, group, "ignored (sticky)"
102
102
            return
103
103
        print 'delete', team, group
104
104
        del openerprunbot.runbot.groups[group_id]
105
105
        for j in group.points:
106
 
            j.stop()
 
106
            if j:
 
107
                j.stop()
107
108
        def f(state):
108
109
            # TODO check team and group are valid
109
110
            state.setdefault(team, {})