@blaxel/core 0.2.12 → 0.2.13-dev.90

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.
Files changed (2) hide show
  1. package/dist/jobs/start.js +2 -20
  2. package/package.json +1 -1
@@ -44,26 +44,8 @@ class BlJobWrapper {
44
44
  */
45
45
  async start(func) {
46
46
  await (0, autoload_js_1.authenticate)();
47
- let span = (0, telemetry_js_1.startSpan)(`blStartJob-${func.name}`, {
48
- attributes: {
49
- 'job.name': func.name,
50
- 'job.index': this.index,
51
- 'job.args': JSON.stringify(this.getArguments()),
52
- },
53
- isRoot: true,
54
- });
55
- try {
56
- const parsedArgs = await this.getArguments();
57
- await func(parsedArgs);
58
- span.setStatus('ok');
59
- span.end();
60
- }
61
- catch (error) {
62
- span.recordException(error);
63
- span.setStatus('error', 'Job execution failed');
64
- span.end();
65
- throw error;
66
- }
47
+ const parsedArgs = await this.getArguments();
48
+ await func(parsedArgs);
67
49
  }
68
50
  }
69
51
  const blStartJob = (func) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/core",
3
- "version": "0.2.12",
3
+ "version": "0.2.13-dev.90",
4
4
  "description": "Blaxel Core SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",