@blaxel/core 0.2.3-dev.61 → 0.2.3-dev1

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.
@@ -0,0 +1,32 @@
1
+ declare class BlBatch {
2
+ /**
3
+ * Lists all remote batch jobs for a given name
4
+ * @param name - The name of the job to list
5
+ */
6
+ list(name: string): void;
7
+ /**
8
+ * Creates a new remote batch job configuration.
9
+ * This is used for remote execution management, not for local execution.
10
+ * @param name - The name of the job
11
+ * @param args - Array of argument arrays for each job in the batch
12
+ * @returns The batch configuration object
13
+ */
14
+ create(name: string, args: any[][]): {
15
+ name: string;
16
+ args: any[][];
17
+ };
18
+ /**
19
+ * Kills a remote batch job
20
+ * @param name - The name of the job
21
+ * @param batchId - The ID of the batch to kill
22
+ */
23
+ kill(name: string, batchId: string): void;
24
+ /**
25
+ * Retrieves information about a remote batch job
26
+ * @param name - The name of the job
27
+ * @param batchId - The ID of the batch to get information for
28
+ */
29
+ get(name: string, batchId: string): void;
30
+ }
31
+ export declare const blBatch: BlBatch;
32
+ export {};
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.blBatch = void 0;
4
+ class BlBatch {
5
+ /**
6
+ * Lists all remote batch jobs for a given name
7
+ * @param name - The name of the job to list
8
+ */
9
+ list(name) {
10
+ }
11
+ /**
12
+ * Creates a new remote batch job configuration.
13
+ * This is used for remote execution management, not for local execution.
14
+ * @param name - The name of the job
15
+ * @param args - Array of argument arrays for each job in the batch
16
+ * @returns The batch configuration object
17
+ */
18
+ create(name, args) {
19
+ const batch = {
20
+ name,
21
+ args,
22
+ };
23
+ return batch;
24
+ }
25
+ /**
26
+ * Kills a remote batch job
27
+ * @param name - The name of the job
28
+ * @param batchId - The ID of the batch to kill
29
+ */
30
+ kill(name, batchId) {
31
+ }
32
+ /**
33
+ * Retrieves information about a remote batch job
34
+ * @param name - The name of the job
35
+ * @param batchId - The ID of the batch to get information for
36
+ */
37
+ get(name, batchId) {
38
+ }
39
+ }
40
+ exports.blBatch = new BlBatch();
@@ -0,0 +1,33 @@
1
+ declare class BlJob {
2
+ start(func: (...args: any[]) => Promise<void>): void;
3
+ /**
4
+ * Lists all remote batch jobs for a given name
5
+ * @param name - The name of the job to list
6
+ */
7
+ list(name: string): void;
8
+ /**
9
+ * Creates a new remote batch job configuration.
10
+ * This is used for remote execution management, not for local execution.
11
+ * @param name - The name of the job
12
+ * @param args - Array of argument arrays for each job in the batch
13
+ * @returns The batch configuration object
14
+ */
15
+ create(name: string, args: any[][]): {
16
+ name: string;
17
+ args: any[][];
18
+ };
19
+ /**
20
+ * Kills a remote batch job
21
+ * @param name - The name of the job
22
+ * @param batchId - The ID of the batch to kill
23
+ */
24
+ kill(name: string, batchId: string): void;
25
+ /**
26
+ * Retrieves information about a remote batch job
27
+ * @param name - The name of the job
28
+ * @param batchId - The ID of the batch to get information for
29
+ */
30
+ get(name: string, batchId: string): void;
31
+ }
32
+ export declare const blJob: BlJob;
33
+ export {};
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.blJob = void 0;
4
+ function retrieveArguments() {
5
+ const args = process.argv.slice(2);
6
+ return args;
7
+ }
8
+ class BlJob {
9
+ /*
10
+ Run a job defined in a function, it's run in the current process
11
+ */
12
+ start(func) {
13
+ const args = retrieveArguments();
14
+ func(...args);
15
+ }
16
+ /**
17
+ * Lists all remote batch jobs for a given name
18
+ * @param name - The name of the job to list
19
+ */
20
+ list(name) {
21
+ }
22
+ /**
23
+ * Creates a new remote batch job configuration.
24
+ * This is used for remote execution management, not for local execution.
25
+ * @param name - The name of the job
26
+ * @param args - Array of argument arrays for each job in the batch
27
+ * @returns The batch configuration object
28
+ */
29
+ create(name, args) {
30
+ const batch = {
31
+ name,
32
+ args,
33
+ };
34
+ return batch;
35
+ }
36
+ /**
37
+ * Kills a remote batch job
38
+ * @param name - The name of the job
39
+ * @param batchId - The ID of the batch to kill
40
+ */
41
+ kill(name, batchId) {
42
+ }
43
+ /**
44
+ * Retrieves information about a remote batch job
45
+ * @param name - The name of the job
46
+ * @param batchId - The ID of the batch to get information for
47
+ */
48
+ get(name, batchId) {
49
+ }
50
+ }
51
+ exports.blJob = new BlJob();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/core",
3
- "version": "0.2.3-dev.61",
3
+ "version": "0.2.3-dev1",
4
4
  "description": "Blaxel Core SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",