MCPcopy Create free account
hub / github.com/apache/cloudstack / submitCmds

Method submitCmds

tools/marvin/marvin/asyncJobMgr.py:166–178  ·  view source on GitHub ↗
(self, cmds)

Source from the content-addressed store, hash-verified

164 self.db = db
165
166 def submitCmds(self, cmds):
167 if not self.inqueue.empty():
168 return False
169 id = 0
170 ids = []
171 for cmd in cmds:
172 asyncjob = job()
173 asyncjob.id = id
174 asyncjob.cmd = cmd
175 self.inqueue.put(asyncjob)
176 id += 1
177 ids.append(id)
178 return ids
179
180 def updateTimeStamp(self, jobstatus):
181 jobId = jobstatus.jobId

Callers 1

submitCmdsAndWaitMethod · 0.95

Calls 4

jobClass · 0.85
emptyMethod · 0.80
putMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected