โ† All releases

wp-content/plugins/anvil/anvil.php

Anvil

Run a scheduled job now, and see what it did.

== Description ==

Debugging a scheduled job usually means waiting an hour to find out whether your fix worked. Anvil runs any event on demand, captures its output, errors and duration, and shows them โ€” which turns an hour into a second.

It complements a monitor rather than replacing one: Anvil is the screen you open when something is wrong, not the thing that tells you it is.

Events can be rescheduled, deleted or duplicated with different arguments, which is how you test that a job handles the argument set it will actually get in production.

== Screenshots ==

Numbered the way they ship in /assets/. Click any one to see it full width.

== Installation ==

  • Install and activate the plugin.
  • Open Tools โ†’ Cron Events.
  • Press Run now on the event you are debugging.

Manual runs execute in the request, so a job that takes four minutes will take four minutes of your patience.

== Frequently asked questions ==

Does it catch fatal errors?

A fatal in a manual run is caught by a shutdown handler and reported with its file and line, rather than a white screen.

Can I edit event arguments?

You can duplicate an event with different arguments. Editing in place would silently change what production runs.

== Changelog ==

= 2.1.0 =

  • Output and error capture for manual runs, including fatals via a shutdown handler.
  • Duration and peak memory recorded per manual run.

= 2.0.0 =

  • Rewritten around the WP-Cron API rather than direct option access, so it agrees with alternate cron implementations.