Closed marusshi closed 6 years ago
I found a workaround for the SchedulerService class right now by running the code with unique code names for all components but this probably isn't optimal because it creates a new Code object every time instead of appending the new instance to the existing Code object.
Fixed in 7f88ebd
Code Engine keeps track of all codes it is running in a field called
codes
, a mapping of the code name to Code object. When code migrates from engine n0 to n1, n1'scodes
field is updated to the code recovered from the snapshotThis will cause problems in an example like this:
This will specifically cause problems for the Scheduler because it assumes n0 still has reference to its original Foo.js. If the next schedule is computed where n0 should migrate its original Foo.js, an error like this will be thrown: