Skip to content

Task Handler arrow function property names are sometimes an empty string #453

@tegefaulkes

Description

@tegefaulkes

Specification

In the NodeManager we make use of 3 handlers with the task system. Their handler IDs are public read only properties that are public readonly handlerId = '${this.constructor.name}.${this.handler.name}' as HandlerId. this.handler is an async arrow function used as a handler for a task. The handlerId should be 'NodeManager.handler'.

The problem is, in some cases the this.handler.name has the value of '' as an empty string. The weird thing is, in a simple test where we just construct the NodeManager and check it we get the expected values. When we do more complex tests within the nodes domain we see the empty strings resulting in errors.

My first guess is it's the same decorator problem we had to fix for the this.constructor.name when we switched to SWC. I'm guessing when we start the NodeManager it overwrites the property names? More exploration on this is needed.

Additional context

Tasks

  1. Determine the cause of the problem.
  2. Fix property names so the are not empty strings.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions