Title: How do I notify to Action that my process is complete?
Last modified: February 19, 2021

---

# How do I notify to Action that my process is complete?

 *  Resolved [ddoddsr](https://wordpress.org/support/users/ddoddsr/)
 * (@ddoddsr)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/https-xkcd-com-2425/)
 * How do I notify to Action that my process is complete?
    Or failing? I know that
   the process has run but the status stays as in-progress.
 * Do I use the the action’s ID in some manner.
    -  This topic was modified 5 years, 2 months ago by [ddoddsr](https://wordpress.org/support/users/ddoddsr/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [3 Sons Development](https://wordpress.org/support/users/3sonsdevelopment/)
 * (@3sonsdevelopment)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/https-xkcd-com-2425/#post-14141308)
 * Hi [@ddoddsr](https://wordpress.org/support/users/ddoddsr/),
 * The documentation mentions using a callback like this:
 *     ```
       /**
        * A callback to run when the 'eg_midnight_log' scheduled action is run.
        */
       function eg_log_action_data() {
       	error_log( 'It is just after midnight on ' . date( 'Y-m-d' ) );
       }
       add_action( 'eg_midnight_log', 'eg_log_action_data' );
       ```
   
 * [https://actionscheduler.org/usage/](https://actionscheduler.org/usage/)
 * Have you tried something like that?
 *  [3 Sons Development](https://wordpress.org/support/users/3sonsdevelopment/)
 * (@3sonsdevelopment)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/https-xkcd-com-2425/#post-14173897)
 * Hi [@ddoddsr](https://wordpress.org/support/users/ddoddsr/),
 * It’s been a while since we heard from you, so I’m marking this thread resolved.
   Hopefully, you’ve been able to resolve this, but if you haven’t, please open 
   up a new topic and we’ll be happy to help out.
 * Cheers
 *  Thread Starter [ddoddsr](https://wordpress.org/support/users/ddoddsr/)
 * (@ddoddsr)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/https-xkcd-com-2425/#post-14186601)
 * Sorry for the delay,
    The question here is how to make the Action Scheduler screen
   reflect that a process has failed or is complete or still running. I see those
   status but in the callbacks I run but don’t see how that status is set.
 * thanks
 *  [crstauf](https://wordpress.org/support/users/crstauf/)
 * (@crstauf)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/https-xkcd-com-2425/#post-14186712)
 * I ran into this the other day, where I wanted to indicate an action had failed(
   couldn’t retrieve third-party data for example), and to mark it as failed, while
   enqueuing an async action to try again.
 *  Thread Starter [ddoddsr](https://wordpress.org/support/users/ddoddsr/)
 * (@ddoddsr)
 * [5 years ago](https://wordpress.org/support/topic/https-xkcd-com-2425/#post-14371581)
 * I have process that starts a scheduled item for an off-hours process I’ll call
   build-it-1.
    Build-it-1 runs and schedules build-it-2 which schedules build-it-
   3 & etc
 * I know that the process build-it-1 has run because the last thing it does is 
   schedule build-it-2 but the status stays as **in-progress**.
 * I think I needed to return a true instead of just wp_die().
 *  [crstauf](https://wordpress.org/support/users/crstauf/)
 * (@crstauf)
 * [5 years ago](https://wordpress.org/support/topic/https-xkcd-com-2425/#post-14371613)
 * [@ddoddsr](https://wordpress.org/support/users/ddoddsr/) Oh yes, `wp_die()` will
   prevent AS from marking the action as completed. Remove that and see if that 
   works.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘How do I notify to Action that my process is complete?’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/action-scheduler.svg)
 * [Action Scheduler](https://wordpress.org/plugins/action-scheduler/)
 * [Support Threads](https://wordpress.org/support/plugin/action-scheduler/)
 * [Active Topics](https://wordpress.org/support/plugin/action-scheduler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/action-scheduler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/action-scheduler/reviews/)

## Tags

 * [status](https://wordpress.org/support/topic-tag/status/)

 * 6 replies
 * 3 participants
 * Last reply from: [crstauf](https://wordpress.org/support/users/crstauf/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/https-xkcd-com-2425/#post-14371613)
 * Status: resolved