Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for Task to be Ready #6

Open
Ichmed opened this issue May 2, 2024 · 0 comments
Open

Allow for Task to be Ready #6

Ichmed opened this issue May 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Ichmed
Copy link
Collaborator

Ichmed commented May 2, 2024

Right now each task is kept as Pending even after completion so the executor can keep track of it, otherwise the task can not be restarted via alfad-ctl since the Executor will no longer poll the task.
If it can be assured that a task is no longer running (e.g. by tying a return value of Ready) to an update in the corresponding context, a new task could then be respawned when the "start" or "restart" action is performed over ctl.

This should not be implemeted if there is any way that a new task spawned via ctl corresponds to the same underlying task as one that is already running.

Note: it is not yet clear if removing the tasks from the executor would convey any performance benefit (might also depend on the executor implementation)

@Ichmed Ichmed added the enhancement New feature or request label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant