Tasks should be able to report their progress #2

Closed
opened 2026-06-25 15:28:44 +02:00 by c.fahner · 1 comment
Owner

Currently tasks are all-or-nothing (until an exception is thrown).

Tasks should be able to publish progress updates. This introduces a Task\Update interface and changes the return type of Task::run() to iterable<Task\Update>. The Task namespace will contain one implementation: ProgressUpdate.

Currently tasks are all-or-nothing (until an exception is thrown). Tasks should be able to publish progress updates. This introduces a `Task\Update` interface and changes the return type of `Task::run()` to `iterable<Task\Update>`. The `Task` namespace will contain one implementation: `ProgressUpdate`.
c.fahner added this to the v0.2 milestone 2026-06-25 15:28:44 +02:00
c.fahner changed title from Return iterable<TaskUpdate> from Task to Tasks should report progress updates 2026-06-25 15:31:35 +02:00
c.fahner changed title from Tasks should report progress updates to Tasks should be able to report their progress 2026-06-25 15:39:25 +02:00
c.fahner added spent time 2026-06-25 20:15:15 +02:00
5 minutes
Author
Owner

The README should also be updated with an example task that uses the progress updates.

The README should also be updated with an example task that uses the progress updates.
c.fahner referenced this issue from a commit 2026-06-26 06:47:29 +02:00
c.fahner added spent time 2026-06-26 06:49:15 +02:00
10 minutes
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 15 minutes
c.fahner
15 minutes
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
slendium/build#2
No description provided.