@blaxel/core 0.2.4-dev1 → 0.2.4-dev3
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/jobs/jobs.d.ts +2 -3
- package/dist/jobs/jobs.js +1 -3
- package/package.json +1 -1
package/dist/jobs/jobs.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ExecutionArgs } from "./types.js";
|
|
2
1
|
declare class BlJob {
|
|
3
2
|
jobName: string;
|
|
4
3
|
constructor(jobName: string);
|
|
@@ -7,8 +6,8 @@ declare class BlJob {
|
|
|
7
6
|
get internalUrl(): import("url").URL;
|
|
8
7
|
get forcedUrl(): import("url").URL | null;
|
|
9
8
|
get url(): import("url").URL;
|
|
10
|
-
call(url: URL, tasks:
|
|
11
|
-
run(tasks:
|
|
9
|
+
call(url: URL, tasks: Record<string, unknown>[]): Promise<Response>;
|
|
10
|
+
run(tasks: Record<string, unknown>[]): Promise<string>;
|
|
12
11
|
}
|
|
13
12
|
export declare const blJob: (jobName: string) => BlJob;
|
|
14
13
|
export {};
|
package/dist/jobs/jobs.js
CHANGED
|
@@ -42,7 +42,7 @@ class BlJob {
|
|
|
42
42
|
let body = {
|
|
43
43
|
tasks: tasks
|
|
44
44
|
};
|
|
45
|
-
const response = await fetch(url + "/
|
|
45
|
+
const response = await fetch(url + "/executions", {
|
|
46
46
|
method: "POST",
|
|
47
47
|
headers: {
|
|
48
48
|
...settings_js_1.settings.headers,
|
|
@@ -63,7 +63,6 @@ class BlJob {
|
|
|
63
63
|
});
|
|
64
64
|
try {
|
|
65
65
|
const response = await this.call(this.url, tasks);
|
|
66
|
-
span.setAttribute("job.run.result", await response.text());
|
|
67
66
|
return await response.text();
|
|
68
67
|
}
|
|
69
68
|
catch (err) {
|
|
@@ -74,7 +73,6 @@ class BlJob {
|
|
|
74
73
|
}
|
|
75
74
|
try {
|
|
76
75
|
const response = await this.call(this.fallbackUrl, tasks);
|
|
77
|
-
span.setAttribute("job.run.result", await response.text());
|
|
78
76
|
return await response.text();
|
|
79
77
|
}
|
|
80
78
|
catch (err) {
|