-
Notifications
You must be signed in to change notification settings - Fork 117
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
Fix marking actions with invalid schedules as failed #326
Conversation
80a3b81
to
4eea46e
Compare
4eea46e
to
44cf54f
Compare
I've rebased this one on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one call each to hook/unhook in the unit tests https://github.com/Prospress/action-scheduler/blob/version_3_0_0/tests/phpunit/jobstore/ActionScheduler_wpPostStore_Test.php#L57.
Once those are removed & the 3.0.0 changes, this is good to merge.
44cf54f
to
d3a690d
Compare
Thanks @rrennick! I've fixed up those issues. |
This PR reverts #297 because it would mark the action as failed every time it was fetched, which included things like every time an admin page loads to display the action. The desired behaviour is to mark the action as failed once, when an attempt to run it is undertaken (and that attempt fails). I will introduce that in a separate PR, because it relies on some other improvements to how exceptions are handled when failing to fetch the action.
Because the code from #297 has already been released, I've added a new
ActionScheduler_Store_Deprecated
class to safely deprecate the public and protected methods being reverted.