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

[Bug] Job status stay running #25

Closed
p-paul opened this issue Aug 20, 2024 · 2 comments
Closed

[Bug] Job status stay running #25

p-paul opened this issue Aug 20, 2024 · 2 comments

Comments

@p-paul
Copy link

p-paul commented Aug 20, 2024

Hello,

First off all: Great Job, the pluging resources is very nice and praticle.

I saw a little trouble with the job status when i use the DemoJob from your example.
The job status never pass to success due to an earler return in you code:
image

I update your code in local and it work correclty after:

        if ($failed === false) {
            $attributes += [
                'status' => 'succeeded',
            ];
        } else {
            $attributes += ['status' => 'failed'];
        }

Please let me know if this approach is correct.
See ya :)

@salhdev
Copy link

salhdev commented Aug 26, 2024

Hi All,

Here is how I fixed the code :

        if ($failed === false) {
            $attributes += [
                'status' => 'succeeded',
            ];
            $monitor->update($attributes);
            return;
        }

@adrolli
Copy link
Member

adrolli commented Aug 28, 2024

Hey @p-paul and @salhdev,

I was so deep into code that I missed this issue, sorry. Thanks for the issue and the fix! 🎊
I will push out a minor release the next couple of days.

Cheers,
Alf

mooxbot added a commit that referenced this issue Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants