MCPcopy
hub / github.com/apache/caldera / store

Method store

app/objects/c_schedule.py:43–52  ·  view source on GitHub ↗
(self, ram)

Source from the content-addressed store, hash-verified

41 self.task = task
42
43 def store(self, ram):
44 existing = self.retrieve(ram['schedules'], self.unique)
45 if not existing:
46 ram['schedules'].append(self)
47 return self.retrieve(ram['schedules'], self.unique)
48 existing.update('schedule', self.schedule)
49 existing.task.update('state', self.task.state)
50 existing.task.update('autonomous', self.task.autonomous)
51 existing.task.update('obfuscator', self.task.obfuscator)
52 return existing

Callers

nothing calls this directly

Calls 2

retrieveMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected