mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
reset runtimeInfos
This commit is contained in:
parent
b51d5665bb
commit
74f8488dee
2 changed files with 13 additions and 0 deletions
|
|
@ -906,9 +906,16 @@ public class Note implements ParagraphJobListener, JsonSerializable {
|
|||
public static Note fromJson(String json) {
|
||||
Note note = gson.fromJson(json, Note.class);
|
||||
convertOldInput(note);
|
||||
note.resetRuntimeInfos();
|
||||
return note;
|
||||
}
|
||||
|
||||
public void resetRuntimeInfos() {
|
||||
for (Paragraph p : paragraphs) {
|
||||
p.clearRuntimeInfos();
|
||||
}
|
||||
}
|
||||
|
||||
private static void convertOldInput(Note note) {
|
||||
for (Paragraph p : note.paragraphs) {
|
||||
p.settings.convertOldInput();
|
||||
|
|
|
|||
|
|
@ -753,6 +753,12 @@ public class Paragraph extends Job implements Cloneable, JsonSerializable {
|
|||
}
|
||||
}
|
||||
|
||||
public void clearRuntimeInfos() {
|
||||
if (this.runtimeInfos != null) {
|
||||
this.runtimeInfos.clear();
|
||||
}
|
||||
}
|
||||
|
||||
public Map<String, ParagraphRuntimeInfo> getRuntimeInfos() {
|
||||
return runtimeInfos;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue