Skip to content

Assignable task names for logging purposes #545

@m-fila

Description

@m-fila

Currently the names of tasks are inferred from the names of scheduled functions or callables through reflexion. In the code I'm experimenting with most of the tasks are closures or some mockups, so they either end up with with names like #242 or they all have the same name.
I think that for visualization and debugging it would be very useful to be able to assign programmatically a human readable name

I'd appreciate if something like this was possible:

a = Dagger.@spawn name="taskA" mockup_job(x,y,z)
b = Dagger.@spawn name="taskB" mockup_job(u,v,w)
c = Dagger.@spawn name="taskC" mockup_job(a,b)

so in the logs and visualization the taks could appear as taskA, taskB, taskC instead of mockup_job, mockup_job, mockup_job

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions