woocommerce / action-scheduler-custom-tables

This plugin is no longer needed. The custom table code is now part of Action Scheduler version 3.0 and newer. If you're using the latest Action Scheduler, you have the most performant schema available.
https://actionscheduler.org
14 stars 2 forks source link

Properly set last attempt dates when migrating completed actions #12

Closed JPry closed 6 years ago

JPry commented 6 years ago

This does 2 things to facilitate setting the last attempt dates properly:

  1. Adds an update_action() method to the DB_Store data store.
  2. Adds logic in the migration class to set the last attempt dates on completed actions. This ensures that the DB_Store::create_action() method doesn't need to know anything about other data store types.

Fixes #10

JPry commented 6 years ago

@thenbrent I just added two more commits with unit tests to cover the case we're fixing

thenbrent commented 6 years ago

Closing this in favour of https://github.com/Prospress/action-scheduler-custom-tables/pull/26