# discourse-auto-deactivate の単回実行を強制する

**URL:** https://meta.discourse.org/t/forcing-discourse-auto-deactivate-to-run-once/90458
**Category:** Support
**Created:** [2018 年 6 月 22 日午前 7:00 UTC](https://meta.discourse.org/t/forcing-discourse-auto-deactivate-to-run-once/90458 "2018-06-22T07:00:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![chumstick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chumstick/32/122383_2.png) [@chumstick](https://meta.discourse.org/u/chumstick)
#### Post date: [2018 年 6 月 22 日午前 7:00 UTC](https://meta.discourse.org/t/forcing-discourse-auto-deactivate-to-run-once/90458/1 "2018-06-22T07:00:05Z")

</div>

Hi all.

I’ve installed the discourse-auto-deactivate plugin and set it to the time frame I’d like. As usual, that’s the easy part. My understanding is that the plugin is on a schedule (timer?) and will run once every 24 hours to determine which accounts are now available for deactivation. Is there a way to manually induce that task, just once, so I can cleanup the user list?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018 年 6 月 22 日午前 7:46 UTC](https://meta.discourse.org/t/forcing-discourse-auto-deactivate-to-run-once/90458/2 "2018-06-22T07:46:43Z")

</div>

Not sure; a question for @blake!

---

<div class="post-metadata">

### Author: ![chumstick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chumstick/32/122383_2.png) [@chumstick](https://meta.discourse.org/u/chumstick)
#### Post date: [2018 年 6 月 22 日午前 9:28 UTC](https://meta.discourse.org/t/forcing-discourse-auto-deactivate-to-run-once/90458/3 "2018-06-22T09:28:52Z")

</div>

While I’m still really interested in knowing there’s a way to run that plugin “on-demand”, I did find [this](https://meta.discourse.org/t/bulk-deactivation-of-inactive-users/64562/2) thread and that query still worked pretty well so I did get the “initial” clean up done.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2018 年 6 月 25 日午前 4:32 UTC](https://meta.discourse.org/t/forcing-discourse-auto-deactivate-to-run-once/90458/4 "2018-06-25T04:32:38Z")

</div>

You can visit /sidekiq and see if you see the job that needs to be started.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2018 年 7 月 25 日午前 4:32 UTC](https://meta.discourse.org/t/forcing-discourse-auto-deactivate-to-run-once/90458/5 "2018-07-25T04:32:41Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
