---
title: "The incredible possibilities offered by the Scheduled Tasks in Joomla"
format: html
theme: darkly
number-sections: true
smooth-scroll: true
link-external-icon: true
toc: true
other-links:
  - text: List of all presentations
    href: https://slides.woluweb.be/
include-in-header:
  - file: ../woluweb-opengraph.html
  - file: ../woluweb-analytics.html
  - file: ../woluweb-other.html
  - text: |
      <meta property="og:title" content="The incredible possibilities offered by the Scheduled Tasks in Joomla" />
      <meta property="og:description" content="Marc Dechèvre ● Woluweb" />
---

{{< include ../marc_dechevre_by.md >}}

Last update: 2026.05.21 for Joomla FR sessions

This presentation was updated for its first anniversary on the occasion of JoomlaCamp Essen Germany - 2025.03.14 + 2025.03.15 - #jd25de

This presentation was made at

- Joomla FR - 2026.05.21 - #afuj
- JoomlaCamp Essen Germany - 2024.03.01 + 2024.03.02 - #jc24de #jcamp
- JoomlaDay USA - 2024.04.12 - #jdayusa - [login to see the video as soon as it is made available](https://jdayusa.com/sessions/sessions-2024/session-2024/april-12-24/slot-2024-04-12-4/the-incredible-possibilities-offered-by-the-joomla-task-scheduler)
- JoomlaDagen Netherlands - 2024.05.31 - #jd24nl
- JoomlaDay D.A.CH - 2024.09.20 - #jd24dach
- JoomlaDay France - 2024.10.18 - #jd24fr

## INTRODUCTION

With version 4.1 Joomla introduced a very interesting new feature called **Scheduled Tasks**. WIth other words with **automation**

Even though it has been present since 14 February 2022, everytime I exchange with other Joomlers I realize that the majority has overlooked the power of this feature.

So the goal of this article is to shed some light on the possibilities at the hand of different examples / usecases:

- some are native Plugins, ready to be used within Joomla
- some are third-party Plugins, typically open source and available for free on Github
- and of course the whole idea is that you can also create your own, in order to meet your specific needs

## Scheduled Tasks - native Plugins

Go to your backend > System > Scheduled Tasks.

Click on the New button and see what is already natively available in Joomla:

- **Delete ActionLogs**<br />*Delete Action logs after days*
- **Expiration of privacy consents**<br />*Manage the expiration of privacy consents*
- **GET Request**<br />*Make GET requests to a server. Supports a custom timeout and authorization headers.*
- **Global Check-in**<br />*Check in checked out items.*
- **Image Size Check**<br />*Check images, resize if larger than allowed. Attention: The original file will be overwritten!*
- **Joomla! Update Notification**<br />*This task periodically checks for the availability of new Joomla! versions. When one is found it will send you an email, reminding you to update. You can customise the email*
- **Rotate Logs**<br />*Periodically rotates log files.*
- **Session Data Purge**<br />*Task Plugin that purges expired data and metadata depending on the session handler set in Global Configuration.*
- **Set Site Online**<br />*Sets site status to online on each run.*
- **Set Site Offline**<br />*Sets site status to offline on each run.*
- **Toggle Offline**<br />*Toggles the site's status on each run.*

### My favourite ones

My favourite ones are

#### Global Check-in

Gosh, how many times end-users called me in the last ten years because they were editing from the front-end but some Articles were "checked out" by "accident", preventing them from opening them. Every time I would have to go to the back-end to "check-in" all Items.

Now I can automate this action every night at 3 PM for example

#### Image Size Check

In many cases you want to have a maximum width or height for images in a given Folder. But even if you make your end-users aware of the importance or resizing (in order to have a better performance for the visitors but also to have smaller backups etc) still people "forget" to resize their images.

Now I can for given Folders automatically resize the images (for example I set a maximum width of 600 pixels for all images in the Newsletter folder)

#### Get request

For some of my websites, I need to trigger some synchronization thanks to a script which is accessible on a given URL.
The Get request does exactly that...

## Scheduled Tasks - third-party Plugins

### Check-in all your Content in J4

As mentioned above, since Joomla 5 there is a Native Plugin to check-in all your Content. But what is your website is still running J4?

Free - by Tobias Zulauf aka zero-24

See <https://github.com/zero-24/plg_task_checkin>

### Auto-delete files

What about auto-deleting files older than a certain timeframe in a given folder only (and not its subfolders)

Free - by Tom van der Laan

See <https://github.com/TLWebdesignNL/Auto-Delete-Files-Task-Scheduler-Plugin>

### Change different Parameters of Articles automatically

What about being able to move Articles to other Categories in function of a certain date (or do similar things)

#### Kick Manage Article

A Task Scheduler to move articles from some Category to another Category when older than X days, based on the following dates:

- created
- modified
- published
- unpublished

Free - by KickTemp

See <https://github.com/Kicktemp/plg_task_kickmanagearticle>

#### CCC Timewarp

With this plugin, you can

- move your Articles to a different Category depending on a certain Date
- change the publication Status
- adjust the Access Level
- ...

This is particularly useful if you use Joomla Articles to display Events, but also, for example, to make your news only available to a closed circle for x days and only make them public after some time.

NB: on top of the usual Types of Dates, you can also use a Custom Field of Type Date in your conditions, which is handy.

Paid - by Elisa Foltyn

See

- <https://coolcat-campus.com/en/extensions/joomla-task-scheduler-plugin-ccc-timewarp> 
- <https://coolcat-campus.com/en/subscribe/joomla-plugins>
- the presentation made by Elisa on 2024.07.31 on Tim Davis' YouTube Channel (Basic Joomla Tutorials): <https://www.youtube.com/watch?v=M24KOS71Zis> (in particular from minute 15)

### Reset Hits

For a given project where I needed to display "the most popular Films of the month", I wanted to reset the number of Hits on the 1st day of every month.

In the Configuration you can choose to reset Hits for any of the following:

- Articles
- Tags
- Categories

Free - by Marc Studer (aka Garstud) and Marc Dechèvre (aka Woluweb)

See <https://github.com/woluweb/plg_task_resethits>

### Synchronize my Custom Fields with some external Web Service

Yet for another project I needed to synchronize the value of 20 Custom Fields for 300 Articles with the latest data coming from some external Web Service.

Let's take a practical example: *social.brussels* is a kind of Directory of all Social Services and Associations in Brussels. You can access the details of each organization:

- either direclty from their website (for humans): <https://social.brussels/organisation/13219>
- either in json-format (for programs): <https://social.brussels/rest/organisation/13219>

On the Joomla website there are hundreds of articles having Custom Fields for the Address, Phone number etc.

So the idea was to automate a daily synchronization between the external source and our website so that the end users would not spend hours every month checking whether some information were outdated since last time...

Free - by Dimitris Grammatikogiannis

See <https://github.com/dgrammatiko/plg_task_json2cf>

### Delete Trashed

With this Task Plugin you can schedule the execution of the Empty Trash task.

Free - by Nicola Galgano aka Alikon

See <https://extensions.joomla.org/extension/task-delete-trashed> & <https://www.alikonweb.it/extensions/task-plugin-delete-trashed>

### TF Auto Update

Two Tasks are available:

- Update any column in any Joomla! database automatically
- Delete records from any Joomla database table based on defined rules

Free - by Tech Fry

See <https://extensions.joomla.org/extension/tf-auto-update>

### Force password reset

This Joomla! task plugin will help You to force users of selected groups to reset their password periodically.

You can set different periods for different users groups.

When task run , user will forced to reset his password after their next login

Paid - by Mishel Naguib

See <https://extensions.joomla.org/extension/force-password-reset-task>

### Manage Inactive Users

This task plugin will help You to manage inactive users.

Paid - by Mishel Naguib

See <https://extensions.joomla.org/extension/manage-inactive-users-task>

### End Users Sessions

This Task Plugin will end users sessions, so users will be forced to relogin

<https://extensions.joomla.org/extension/clients-a-communities/user-management/end-users-sessions-task>

Paid - by Mishel Naguib

### Feeding Articles from an external API

It reads an external API (a kind of Job Board) and feeds Joomla Articles of a given Category.

Official description: API interface for Apicodo Dorfapp. Task plugin to import the data time-controlled via the APICODO API. A category must be selected in the plugin to which the data records can be transferred. With each new request, all data records in the category are deleted and rewritten.

Free - by Claudia

<https://github.com/coweb01/Master-task_wbcdorfapp>

### Migrate User Profiles to Custom Fields

This "Scheduled Tasks" plugin migrates the data from the Joomla user profile to Custom Fields. Manually, hourly, according to your specifications.

Free - by Kicktemp

<https://kicktemp.shop/produkte/kickprofiletocustomfield>

### Extension Updates Notification

This Joomla plugin checks for updates of extensions and sends an email once available, the code is based on the core plg_task_updatenotification plugin.

<https://extensions.joomla.org/extension/extensionupdates/> & <https://github.com/zero-24/plg_task_extensionupdates>

Free - by Tobias Zulauf aka zero-24

### JFilters - set automatically the min and max values when using the Range Slider

JFilters is an extension by BlueCoder (Sakis Terzis) allowing to filter your Articles and Contacts using Custom Fields, Categories, Tags and native fields:

<https://blue-coder.com/jfilters>

In June 2024, JFilters introduced the possibility to filter on a *range* (for Integers or Dates) which is quite handy. See the details on

<https://blue-coder.com/help/blog/how-to-fiilter-using-numerical-and-date-ranges>

For this Range (with or without a Slider), in practice you need to **manually** set a *minimum* and a *maximum* value.

At #jd24dach, Elisa Foltyn created a Task plugin which will automatically set these *minimum* and a *maximum* values based on the real values met in the corresponding Custom Field.

I have a usecase where this is particularly useful: for a website showing the details of 3000+ movies, I wanted to be able to filter on the Duration of each film. Of course I could have set a theoretical minimum value of 0 and a maximum value of 300 minutes... but thanks to this Task the min and max values are **dynamically** set based on the real Duration of each of the films.

Free - by Elisa Foltyn (aka Coolcat Creations)

<https://github.com/coolcat-creations/plg_task_jfilterrangesliderupdater>

### ReviewContentNotification

This Joomla plugin checks whether an existing content item has not been modified for an given time to inform the author and ask him to confirm the content of the article.

<https://extensions.joomla.org/extension/reviewcontentnotification/>

Free - by Tobias Zulauf aka zero-24

### Executing a query

(Coming soon)

Free - by Oliver Schuldt

### Scheduled Tasks provided directly by some Extensions

As mentioned in the Sources, some extensions provide their own Task Schedulers. Examples:

- **Akeeba Backup**
    - Backup Task: <https://akee.ba/scheduledtasks>
- **Akeeba Admin Tools**
    - PHP File Scanner: <https://www.akeeba.com/documentation/admin-tools-joomla/php-file-scanner-joomlascheduled.html>
    - Remove unnecessary users with Pro version
    - Clean up the temporary directory
    - ...
- **RO CSVI**
    - <https://rolandd.com/news/ro-csvi-8-9-0-release>
- **PWT ACL**
    - on 17 May 2024 PWT ACL 5.1.0 introduces two powerful Scheduled Tasks for Joomla 4 and 5: <https://extensions.perfectwebteam.com/news/pwt-acl-510-released>
    - Fix Assets
    - Rebuild Assets
- **Hikashop**
    - on 20 June 2024 Hikashop released 2 new free plugins for the Joomla Task Scheduler
    - one to schedule report exports: <https://hikashop.com/marketplace/product/283-task-report.html>
    - and one to schedule mass actions: <https://hikashop.com/marketplace/product/284-task-massaction.html>
- **DPMedia**
    - <https://joomla.digital-peak.com/documentation/dpmedia/joomla-plugins/task>
    - Media Sync: Sync remote files with local files
    - Sync Local media files: Sync local files with cloud services
- **DPCases**
    - <https://joomla.digital-peak.com/documentation/dpcases/plugins/task>
    - Send notification to author when a case is about to be closed
- **DPCalendar**
    - <https://joomla.digital-peak.com/documentation/dpcalendar/joomla-plugins/task>
    - Sync Events: Synchronize the website with external calendars
    - Send ticket certificates: Send a certificate when the event has ended
    - Booking deletions: Delete bookings with certain criteria
    - Event deletions: Delete events with certain criteria
    - Event reminders: Send reminders
- **SchuWeb Sitemap** 
    - Update sitemap XML (this sitemap extension creates a /sitemap.xml file. The task plugin ensures that the file is updated with all pages, images and news items)
    - <https://extensions.joomla.org/extension/schuweb-sitemap/>
- **CG Secure**
    - CG Secure component protects your Joomla forms and admin access by checking IPs from AbuseIPDB, giving country/spammer status
    - it ships with several Scheduled Tasks
    - <https://www.conseilgouz.com/en/cg-secure-component>

## Scheduled Tasks - create your own... and share it!

As you can see from the above-mentioned examples, the sky is the limit: for every need you can invent your own Scheduled Task.

This would be a nice topic for (yet) another article in the Joomla Community Magazine in the coming months: develop different nice usecases for Scheduled Tasks like:

- connect your website with Zapier or other similar services
- modify some Custom Field value based on some conditions
- reset the password of (some) users every n months
- do some database work (optimizing, ...)
- check and notify for updates
- check for system modifications (PHP version, execution time, ...)
- interact with your newsletter extension
- interact with your e-commerce extension (abandoned carts, ...)
- send Push Notifications (OneSignal, ...)
- send SMS (Twillio, ...)
- ...

So please share your ideas/suggestions of Scheduled Tasks!

And if you already wrote one, please share the link so that everybody can enjoy...

## See common parameters

You can get an email notification

- upon success
- upon failure

You can enable/disable logs.

Etc.

## Triggering the tasks

Last but not least:

- if you only want to run a given Task manually, there is a nice yellow button `Run Test` to launch it
- but more generally, Scheduled Tasks need at least 1 triggering method to be active if you want it to be *automated*. There are 3 different triggering methods

See a summary hereafter but you can find more documentation about that here:

- <https://akee.ba/scheduledtasks>
- <https://docs.joomla.org/Help5.x:Scheduled_Tasks/en>

### CRON jobs

- you only need to setup 1 CRON job... and it will process the whole tasks queue (fastest and most efficient)
- command: `/path/to/php /path/to/site/cli/joomla.php scheduler:run --all`
- set the frequence according to your needs (5 minutes for example. Or even every minute if your host allows it)

### Web CRON (a URL)

- with your host: still requires to setup a CRON job (wget or curl. Or sometimes via a specific interface of your host)
- with a third-party service: but can become very expensive
- to enable, go to System > Manage > Scheduled Tasks > Options. There go to Web Cron tab, Enable it, Save and then a Webcron Link appears, that you can Copy

Note:

Your host does not provide a decent Web Cron or you don't want to depend on your host or you want to have all your Crons centralized in one place? <https://cron-job.org/en/> is a nice (free) solution.

### Lazy Scheduler (also sometimes called "poor man's cron")

- to enable, go to System > Manage > Scheduled Tasks > Options. There go to Lazy Scheduler tab, Enable it, change maybe the Request Interval (from 300 to 30 for example if you have time-sensitive Tasks) and Save
- so very easy
- but be aware: 
    - by definition it only triggers when you have visitors. So you can't predict the execution time (more likely to run when the website is busy) and it requires more resources
    - if you use CDNs it could be that your website is not triggered because of the third party caching solution
    - better not to use for tasks which are heavy (backups for instance) or which are time-sensitive (newsletter, ...)

## Errors / Exit Codes

If you get Error notifications mentioning Exit Codes, it is not very explicit.

The following file might already help you understanding what your Exit Code means :

<https://github.com/joomla/joomla-cms/blob/5.2-dev/administrator/components/com_scheduler/src/Task/Status.php>

Given the fact that a Task which does end properly might block the execution of the next tasks, you definitely want to check what happens if you get an Error.

PS: one example of Exit Code in real life: the Notification was enabled... but no Email or a wrong Email was set for the corresponding User

Here is the summary given by Jeroen in his article mentioned above:

- -2 : INVALID_EXIT = Used when a routine returns an invalid (non-integer) exit code
- -1 : NO_EXIT = Used when a routine does not return an exit code
- 1 : RUNNING = Used when the routine is just starting. This is not intended as an exit code
- 2: NO_LOCK = Used when a routine cannot obtain a pseudo-lock
- 3: NO_RUN = Used when unable to execute the task
- 4: NO_RELEASE = Used when unable to release the lock or update the record
- 5: KNOCKOUT = Used when a routine is "disabled" by an exception
- 123: WILL_RESUME = Used when a task is to be resumed. Use this for long-running tasks to split them into smaller batches. When the last batch is done, return Status::OK
- 124: TIMEOUT = Used when a task has a timeout
- 125: NO_TASK = Used when a task does not exist
- 127: NO_ROUTINE = Used when a routine is missing
- 0: OK = This is the exit code on success

## Other resources about the Task Scheduler

Quite luckily different people have also produced interesting content about the Task Scheduler.

So let me start by thanking and referencing them:

- **Peter Martin** wrote in June 2026 a detailed and structured article called "Configuring Joomla Scheduled Tasks": <https://petermartin.nl/en/focus-on/joomla/scheduled-tasks>
- **Herman Peeren** wrote the following articles in the Joomla Community Magazine
    - May 2026's edition: <https://magazine.joomla.org/all-issues/may-2026/custom-plugins-part-2-task-plugin>
        - see in particular his section "resources"
        - <https://github.com/HermanPeeren/plug-gen> : a generator for specific Joomla plugins (part of his Extension Generator. Boilerplate code is generated. Add your custom code where needed)
    - August 2026's edition: <https://magazine.joomla.org/issues/2026/august-2026/how-to-automatically-run-a-task-in-joomla>
- **automated workflow** on the agenda for the Joomla Summer of Code 2026: <https://magazine.joomla.org/all-issues/may-2026/joomla-summer-of-code> : Joomla's workflow system and the scheduled task system currently work independently of each other, and this project aims to connect these tools by creating an Automated Workflow feature that combines both systems, which will enable administrators to configure timed rules directly within the workflow transition configuration, specifying how long after entering a stage an item should automatically be moved to the next stage, supporting both straight workflows and loops. A background scheduled task plugin will then execute these transitions at defined intervals
- **Jeroen Moolenschot aka Joomill** wrote in December 2024 a really nice overview <https://www.joomill.com/knowledge-base/joomla-extensions/scheduled-tasks>
- **Brendan Hedges** wrote in March 2023 an introduction in the current Joomla Community Magazine:
    - [Get to know the new Joomla! Task Scheduler](https://magazine.joomla.org/all-issues/march-2022/get-to-know-the-new-joomla-task-scheduler)
    - He was concluding his article by 20 giving plugin ideas
- **Nicholas Dionysopoulos** made several presentations at Joomla events
    - JoomlaDay D.A.CH 2023
        - see the video on <https://www.youtube.com/watch?v=Owih9M7I2_w>
        - download the slides on <https://akee.ba/jtasks2023>
    - Joomla NXT
        - see the video on <https://www.youtube.com/watch?v=k28_tQzCLlU>
        - see the slides on <https://akee.ba/shceduledtaskspresentation> <small>(yes, with a typo)</small>
- **JoomShaper** wrote a tutorial about using the (native) Image Size Check Scheduled Task: <https://www.joomshaper.com/blog/joomla-4-task-scheduler> 
- **TechFry** wrote a small tutorial about how to create your own Task Scheduler Plugin: <https://www.techfry.com/joomla/how-to-create-joomla-task-scheduler-plugin>

## Conclusion

Have fun and enjoy the power of Joomla! ❤️💙🧡💚

## Get in touch

{{< include ../marc_dechevre.md >}}