[DONE] Background Task ID in IDE

Sometimes, when I launch a background task from the server console, I forget to assign the return value to a variable. That means I can then only check its status from the IDE. I can’t do so in the console.

I can run a comprehension over anvil.server.list_background_tasks but that’s not always easy depending on how many tasks are running and how many of those share the same name.

Could we perhaps have the task ID shown somewhere in the IDE?

4 Likes

Yeap we already have that information so just need to surface it. Should ship soon :blush:

1 Like

Always a pleasure to get the very answer you were hoping would be the case!

Thanks

Note: If you forget to assign and it was the last line in the console
You can always do


>>> anvil.server.launch_background_task(…)
LiveObject<…>
>>> x = _
>>> x
LiveObject<…>

3 Likes

The list of background tasks now shows the Task ID :slight_smile:

4 Likes

Excellent! Many thanks.

1 Like