mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
perf: flush log
This commit is contained in:
@@ -109,7 +109,7 @@ export class Executor {
|
|||||||
}
|
}
|
||||||
const intervalFlushLogId = setInterval(async () => {
|
const intervalFlushLogId = setInterval(async () => {
|
||||||
await this.onChanged(this.runtime);
|
await this.onChanged(this.runtime);
|
||||||
}, 10000);
|
}, 5000);
|
||||||
const timeout = runnable.timeout ?? 20 * 60 * 1000;
|
const timeout = runnable.timeout ?? 20 * 60 * 1000;
|
||||||
try {
|
try {
|
||||||
if (this.canceled) {
|
if (this.canceled) {
|
||||||
|
|||||||
+4
-2
@@ -15,7 +15,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { inject, provide, Ref, ref } from "vue";
|
import { computed, inject, Ref, ref } from "vue";
|
||||||
import { RunHistory } from "../../type";
|
import { RunHistory } from "../../type";
|
||||||
import PiStatusShow from "/@/views/certd/pipeline/pipeline/component/status-show.vue";
|
import PiStatusShow from "/@/views/certd/pipeline/pipeline/component/status-show.vue";
|
||||||
|
|
||||||
@@ -55,7 +55,9 @@ export default {
|
|||||||
}
|
}
|
||||||
for (let node of nodes) {
|
for (let node of nodes) {
|
||||||
if (currentHistory?.value?.logs != null) {
|
if (currentHistory?.value?.logs != null) {
|
||||||
node.logs = currentHistory.value.logs[node.node.id] || [];
|
node.logs = computed(() => {
|
||||||
|
return currentHistory.value.logs[node.node.id] || [];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user