My solution for now is check every hour if it is running and if not reschedule it. I also remove this in deactivate etc.
wp_schedule_event(time(), 'hourly', 'my_restart_schedule_if_failed');
function my_restart_schedule_if_failed() {
if( !wp_next_scheduled( 'my_scheduled_minute_job' ) ) {
wp_schedule_event( time(), 'one_minute', 'my_scheduled_minute_job' );
}
}
Related Posts:
- How to create collections that are edited in admin?
- How Do I Make WordPress Run an Event Every Day?
- How to trap “Publish” button to check for meta box validation?
- Catching Gutenberg sidebar switch event
- Events Manager: Create custom Placeholder for use in Email notification
- Multi hook deploiement
- Identifying a Page Containing Shortcode at `init`
- Autoloading & Namespaces in WordPress Plugins & Themes: Can it Work?
- How can I add an image upload field directly to a custom write panel?
- Creating a table in the admin-style?
- What process do you use for WordPress development? [closed]
- On the WordPress Admin section how do I link to submenu pages created for a plugin?
- How to return only certain fields using get_posts()
- Where to put third party PHP library?
- Add a new tab to WordPress Plugin install Listing
- Export data as CSV in back end with proper HTTP headers
- Add Dividers or Separators Between Nav Menu Items
- Overide get_template_part( ‘partials/post’, ‘sidebar’ ); with a plugin
- Change Media Uploader default directory
- WP 3.3 Tooltips API?
- Clarity needed on usage of multiple 403 forbidden header() functions at the beginning of the plugin files
- Load visual editor without custom styling
- Can i do plugin commits directly from a plugin folder inside an installation using the Trunk SVN
- register_activation_hook() not activate plugin
- Multiple textdomains
- How to prevent specific plugin files or subfolders from appearing under “plugin files” listing
- Dynamically Override Fancy Title
- Use a PHP file as action for a form in a WordPress plugin, what’s the correct way?
- What URL do you pass to wp_remote_get to load the body of the current post’s preview?
- Override pluggable functions in a plugin?
- Set a specific page as 404 – not found via my own plugin
- Adding Automatically To In WordPress Using Filter Referencing?
- Activation hook not creating table
- wpColorPicker is not a function!
- Plugin update not reflected in WordPress plugin page
- Mixing Regular Javascript With jQuery in a Plugin
- How do I alter the comment form ‘allowed tags’ text in a plugin?
- Best plugin for most viewed post [closed]
- What could cause my plugin’s options/settings page not to load?
- Plugin Upgrade Strategy
- Which are the hooks run before/after when a category’s deletion?
- Disable The Events Calendar plugin from loading its scripts
- get_the_excerpt() not working in plugin loop
- How to remove images from my plugin page in WP Directory?
- Is there an additional block.json property to set to get an InnerBlocks child to respect the “supports” property?
- Plugin with action ‘save_post’ needs to press publish twice on order to publish
- WP Editor Issue in Backend
- How to analyze wordpress plugin performance
- On the .org repo, can your plugin name/slug contain “WooCommerce” [closed]
- Wrap text around shortcode
- UWooCommerce – add cart discount programmatically?
- Checked() function on a multidimensional array
- Remove sidebar on single page using plugin API
- When does save_post hook fire on post save/update
- Plugin does not add action
- Enqueuing scripts and styles in custom plugins
- Jquery was not found on this server
- Include file in plugin file
- Plugin language always shows WP site language, not profile language
- How to create a digital product download link that can’t be used twice?
- Adding custom stylesheet into header.php using a plugin
- Developing the save function in Gutenberg blocks
- Creating an installation zip file
- update_callback is not working in register_rest_field
- How to create ShortCode
- Detect change in site_url and home_url
- Reporting errors in a shortcode plugin
- shortcode tags not working in do_shortcode
- Why is the form not updating when I select a new sector from the list?
- How to change a field in database through a submit button or Checkbox? [closed]
- Grandchildtheme (plugin) add header.php (not exist in child theme)
- How do I add a menu item to a Pods admin menu?
- $wpdb->update Issue
- Is there a way to add a link with add_post_meta?
- How to Show Category List With Corresponding Links?
- Import images remotly run through timeout error
- How to make every image title equal to alt text(wordpress/woocommerce)?
- Load specific page when a custom URL is hit
- Getting incorrect filepath inside custom block front-end output using @wordpress/create-block tutorial
- How do I add a 5 digit ZIP code validation to a Contact7 form?
- HTMLCollection not counting right in editor? / for loop not working on elements in DOM
- Trying to rename a file upload as the hash of file content on wordpress
- How can we stop showing short code in create or edit post section
- Getting products information, in woocommerce based on products ID
- Delete Plugin Options with Verify
- How can I measure CPU and RAM used by my theme or plugin
- want to confirm popup with “Yes” and “No” button when user click on add to cart
- set a custom post type to a taxonomy term programmatically in metabox
- Modify search form with plugin
- How to display properly exception or echo string after posting in plugin?
- How to create custom frontend php page via plugin
- How can I add recent posts to menu like mashable
- When using an options array the Settings API isn’t creating the database record
- Changing upload directory for plugin uploads only
- How do I query posts and have their related taxonomies returned in the results?
- On one of my sites a file is shown as 404 but the file IS there
- Update option hook not firing
- $_GET vs get_query_var()
- Extend WP_List_Table class – Edit wp_usermeta – WPPB.me Boilerplate – Action error
- Display months on a drop down calendar as TEXT instead of Numbers