MCPcopy Create free account
hub / github.com/numpy/numpy / Job

Class Job

tools/travis-sorter.py:106–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106class Job:
107 def __init__(self, length):
108 global count
109 self.id = count
110 count += 1
111 self.length = length
112 self.started = -1
113 self.status = "not started"
114 self.ended = False
115
116 def __str__(self):
117 return "{}\tLength: {}\tStarted: {}\tEnded: {}".format(
118 self.id, self.length, self.started, self.ended
119 )
120
121
122def count_status(jobs, status):

Callers 1

travis-sorter.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected