api: fix file cleanup edge case
Processes could still be spawned writing files after the app has cleaned the dir out, and is ready to clear it out. Dumb edge case, but oh well.
This commit is contained in:
parent
5cd84ae816
commit
2386684a05
|
@ -280,10 +280,8 @@ class Job {
|
||||||
async cleanup() {
|
async cleanup() {
|
||||||
logger.info(`Cleaning up job uuid=${this.uuid}`);
|
logger.info(`Cleaning up job uuid=${this.uuid}`);
|
||||||
|
|
||||||
await Promise.all([
|
await this.cleanup_processes();
|
||||||
this.cleanup_processes(),
|
await this.cleanup_filesystem();
|
||||||
this.cleanup_filesystem(),
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue