Don't reschedule imports on failed imports (https://github.com/woocommerce/woocommerce-admin/pull/4263)
This commit is contained in:
parent
586760c561
commit
53ee282331
|
@ -166,11 +166,6 @@ class OrdersScheduler extends ImportScheduler {
|
|||
);
|
||||
|
||||
ReportsCache::invalidate();
|
||||
|
||||
// Check if any syncs returned false or -1 and reschedule their import if so.
|
||||
if ( count( array_intersect( $results, array( -1, false ) ) ) ) {
|
||||
self::schedule_action( 'import', array( $order_id ) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue