Skip to content

Commit 2995201

Browse files
committed
Merge branch '5.0/scheduled-process-docs' into 5.0.8-releng
2 parents ee83839 + 5312c08 commit 2995201

File tree

3 files changed

+37
-17
lines changed

3 files changed

+37
-17
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,20 @@ RT is commercially-supported software. To purchase hosting, support, training, c
261261
for the [`sbin/rt-clean-shorteners`](https://docs.bestpractical.com/rt/latest/sbin/rt-clean-shorteners.html)
262262
tool for options. You can schedule this to run regularly if desired.
263263
264+
RT provides an interface for running scheduled jobs to automate
265+
some tasks, like resolving tickets after some period of time.
266+
To enable this, schedule [`bin/rt-run-scheduled-processes`](https://docs.bestpractical.com/rt/latest/rt-run-scheduled-processes.html)
267+
to run every 15 minutes.
268+
264269
If your task scheduler is cron, you can configure it by
265270
adding the following lines as `/etc/cron.d/rt`:
266271
267272
```
268-
0 0 * * * root /opt/rt5/sbin/rt-clean-sessions
269-
0 0 * * * root /opt/rt5/sbin/rt-email-digest -m daily
270-
0 0 * * 0 root /opt/rt5/sbin/rt-email-digest -m weekly
271-
0 * * * * root /opt/rt5/sbin/rt-email-dashboards
273+
0 0 * * * root /opt/rt5/sbin/rt-clean-sessions
274+
0 0 * * * root /opt/rt5/sbin/rt-email-digest -m daily
275+
0 0 * * 0 root /opt/rt5/sbin/rt-email-digest -m weekly
276+
0 * * * * root /opt/rt5/sbin/rt-email-dashboards
277+
*/15 * * * * root /opt/rt5/bin/rt-run-scheduled-processes
272278
```
273279
274280
Other optional features like full text search indexes, external

docs/UPGRADING-5.0

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,4 +696,20 @@ If you previously set a custom C<@SearchResultsPerPage> and you want to keep the
696696

697697
=back
698698

699+
=head1 UPGRADING FROM 5.0.7 AND EARLIER
700+
701+
=over 4
702+
703+
=item Enabling Scheduled Processes in the Web UI
704+
705+
RT 5.0.8 adds a new page for administrators to schedule automated processes
706+
in the web UI. This allows SuperUsers to add and modify C<rt-crontool> jobs
707+
that previously had to be managed on the server directly in C<cron>.
708+
709+
To enable this, schedule the new utility C<bin/rt-run-scheduled-processes> in
710+
cron to run every 15 minutes. This job will then run any jobs scheduled in the
711+
web UI.
712+
713+
=back
714+
699715
=cut

docs/automating_rt.pod

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -270,17 +270,18 @@ isn't used.
270270

271271
=head1 RT 5 Scheduled Processes
272272

273-
The Scheduled Processes admin page was added in RT 5.0.8. It allows you to
274-
schedule an rt-crontool process directly in RT instead of scheduling it in cron.
273+
The Scheduled Processes admin page is available starting in RT 5.0.8. It allows
274+
you to schedule an rt-crontool process in the RT web UI instead of scheduling
275+
it in cron.
275276

276277
Go to Admin > Tools > Scheduled Processes to view the list of Scheduled
277278
Processes.
278279

279280
=for html <img alt="List Scheduled Processes" src="images/scheduled-processes.png">
280281

281-
=for :text [Create a Custom Role F<docs/images/scheduled-processes.png>]
282+
=for :text [List Scheduled Processes F<docs/images/scheduled-processes.png>]
282283

283-
=for :man [Create a Custom Role F<docs/images/scheduled-processes.png>]
284+
=for :man [List Scheduled Processes F<docs/images/scheduled-processes.png>]
284285

285286
Click the Create tab to create a new scheduled process. Click an existing
286287
scheduled process to modify it.
@@ -291,25 +292,22 @@ section:
291292

292293
=for html <img alt="Create a Scheduled Process" src="images/scheduled-process-create.png">
293294

294-
=for :text [Create a Custom Role F<docs/images/scheduled-process-create.png>]
295+
=for :text [Create a Scheduled Process F<docs/images/scheduled-process-create.png>]
295296

296-
=for :man [Create a Custom Role F<docs/images/scheduled-process-create.png>]
297+
=for :man [Create a Scheduled Process F<docs/images/scheduled-process-create.png>]
297298

298299
and then schedule the process to run in the Schedule section:
299300

300301
=for html <img alt="Schedule the Process" src="images/scheduled-process-schedule.png">
301302

302-
=for :text [Create a Custom Role F<docs/images/scheduled-process-schedule.png>]
303+
=for :text [Schedule the Process F<docs/images/scheduled-process-schedule.png>]
303304

304-
=for :man [Create a Custom Role F<docs/images/scheduled-process-schedule.png>]
305+
=for :man [Schedule the Process F<docs/images/scheduled-process-schedule.png>]
305306

306307
You must schedule L<rt-run-scheduled-processes> in cron to run these scheduled
307-
processes. You'll need to have cron run this script every 15 minutes. Here's an
308-
example crontab entry to do this.
308+
processes. The web UI allows you to schedule jobs in 15 minute increments, so
309+
you'll need to have cron run this script every 15 minutes, for example:
309310

310311
*/15 * * * * /opt/rt5/bin/rt-run-scheduled-processes
311312

312-
This will run the script every 15 minutes, every hour. This may need some
313-
further tweaking to be run as the correct user.
314-
315313
=cut

0 commit comments

Comments
 (0)