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 reading whether the task is running #3

Closed
Vectorial1024 opened this issue Dec 5, 2024 · 2 comments
Closed

Allow reading whether the task is running #3

Vectorial1024 opened this issue Dec 5, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Vectorial1024
Copy link
Owner

Need to check with the Laravel docs, but the idea is that task creators can check whether the tasks are running, and when the task is no longer running, the creator can invoke its custom logic (implemented by themselves) to check whether the task was successful.

With this, we can also have a convenient "polling" function that waits until the task stops running (success or fail) or the specified time is exceeded.

@Vectorial1024 Vectorial1024 added the enhancement New feature or request label Dec 5, 2024
@Vectorial1024
Copy link
Owner Author

The main challenge is how to test this feature, given that we would be "testing" Laravel Processes itself, which is obviously outside our concern.

Maybe this can be approached in another way?

@Vectorial1024
Copy link
Owner Author

Highly related to #5; we can't measure whether tasks are running if tasks don't even have any self-identification available.

Closing as duplicate (poor pre-planning).

@Vectorial1024 Vectorial1024 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2025
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