Changeset 5235 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-svn-watcher.php
- Timestamp:
- 04/04/2017 06:02:37 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-svn-watcher.php
r5234 r5235 73 73 // Set it again, so if the next request fails, this exception will be thrown again, until the issue is resolved. 74 74 wp_cache_set( 'get_plugin_changes_between_failed', time(), 'svn-watch', 60 ); 75 76 // Check the status of the cronjobs are sane, as the exception will trigger it to be marked as `failed`. 77 wp_schedule_single_event( time() + 30, 'plugin_directory_check_cronjobs' ); 75 78 76 79 throw new Exception( "Could not fetch plugins.svn logs: " . implode( ', ', $logs['errors'] ) ); … … 162 165 $log = SVN::log( self::SVN_URL, 'HEAD' ); 163 166 if ( $log['errors'] || ! $log['log'] ) { 167 // Check the status of the cronjobs are sane, as the exception will trigger it to be marked as `failed`. 168 wp_schedule_single_event( time() + 30, 'plugin_directory_check_cronjobs' ); 169 164 170 throw new Exception( "Unable to determine HEAD revision" ); 165 171 }
Note: See TracChangeset
for help on using the changeset viewer.