~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/job/model/job.py

Merge db-devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
    attempt_count = IntCol(default=0)
70
70
 
 
71
    max_retries = IntCol(default=0)
 
72
 
71
73
    # Mapping of valid target states from a given state.
72
74
    _valid_transitions = {
73
75
        JobStatus.WAITING:
76
78
        JobStatus.RUNNING:
77
79
            (JobStatus.COMPLETED,
78
80
             JobStatus.FAILED,
 
81
             JobStatus.SUSPENDED,
79
82
             JobStatus.WAITING),
80
83
        JobStatus.FAILED: (),
81
84
        JobStatus.COMPLETED: (),