Python Forum
drawing a table with the status of tasks in each thread
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
drawing a table with the status of tasks in each thread
#1
Hi all!

I have no formal training but I get scripts working by searching the net and reading.

I am attempting to run a threaded script using concurrent.futures.ThreadPoolExecutor and have each task in each thread populate a "live table". So when thread_0 is running task_0, I will have a collumn "task 0" with the state running in the row "task_0".

I am trying to use Rich for the table layout and trying to use its "Live" feature to refresh the table but it seems that any data I add to the table is not taken into account.

Has anyone done something like that and how would you go about it? I get that this is not a small request so pointers to doc or articles is also great.

Thanks for any help/advice you can provide.

threads task0 task1
--------------------------------
thread_0 done running
thread_1 running
thread_2 done done
Reply


Messages In This Thread
drawing a table with the status of tasks in each thread - by pyfoo - Feb-29-2024, 07:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to script repetitive tasks in dynaform using python BenneGrus 0 1,363 Dec-22-2021, 08:36 AM
Last Post: BenneGrus
  asyncio: executing tasks + httpserver freebsdd 2 2,684 Aug-29-2020, 09:50 PM
Last Post: freebsdd
  Error SQLite objects created in a thread can only be used in that same thread. binhduonggttn 3 15,698 Jan-31-2020, 11:08 AM
Last Post: DeaD_EyE
  PYTHON - UNRAR : how can I build a thread to monitoring the downloading status Palerm0_24 2 2,629 Mar-18-2019, 02:25 PM
Last Post: Palerm0_24
  How to add asynchronous tasks as they are needed? AlekseyPython 2 4,038 Jan-11-2019, 02:58 AM
Last Post: AlekseyPython
  How I can limit quantity of parallel executable tasks in asyncio? AlekseyPython 1 2,456 Oct-24-2018, 10:22 AM
Last Post: AlekseyPython
  run two tasks concurrently tony1812 1 2,647 Jul-24-2017, 05:43 PM
Last Post: Larz60+
  Tasks for Python Lamon112 2 40,764 Jan-13-2017, 03:32 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020