@nosana/node 1.1.41-rc → 1.1.42-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json
CHANGED
|
@@ -131,9 +131,17 @@ export class Provider {
|
|
|
131
131
|
try {
|
|
132
132
|
emitter.emit('start');
|
|
133
133
|
let frpcContainer;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
const
|
|
134
|
+
// A resumed flow re-runs operations that may already have a container, and
|
|
135
|
+
// the name below is the only handle on it.
|
|
136
|
+
const index = getOpStateIndex(flow.jobDefinition.ops, op.id);
|
|
137
|
+
const name = flow.id + '-' + index;
|
|
138
|
+
let container = await this.containerOrchestration.getContainer(name);
|
|
139
|
+
const exist = await this.containerOrchestration.doesContainerExist(name);
|
|
140
|
+
const exited = await this.containerOrchestration.isContainerExited(name);
|
|
141
|
+
// An exited container holds its name, and offers nothing to resume from.
|
|
142
|
+
if (exist && exited) {
|
|
143
|
+
await this.containerOrchestration.stopAndDeleteContainer(name);
|
|
144
|
+
}
|
|
137
145
|
if (exist && !exited && container.id) {
|
|
138
146
|
stateManager = new ContainerStateManager(container, controller, emitter, op.args.restart_policy);
|
|
139
147
|
await stateManager.startMonitoring();
|
|
@@ -146,8 +154,6 @@ export class Provider {
|
|
|
146
154
|
if (!op.args.authentication?.docker) {
|
|
147
155
|
this.resourceManager.images.setImage(op.args.image);
|
|
148
156
|
}
|
|
149
|
-
const index = getOpStateIndex(flow.jobDefinition.ops, op.id);
|
|
150
|
-
const name = flow.id + '-' + index;
|
|
151
157
|
const volumes = getVolumes(op.args, flow);
|
|
152
158
|
const gpu = getGpu(op.args, flow);
|
|
153
159
|
const entrypoint = getEntrypoint(op.args, flow);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nosana/node",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.42-rc",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@nosana/node",
|
|
9
|
-
"version": "1.1.
|
|
9
|
+
"version": "1.1.42-rc",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@coral-xyz/anchor": "^0.28.1-beta.1",
|