At a glance
- Cron jobs whose address contains a chosen domain move along automatically.
- Cron jobs with an HTTP password are carried over too.
- After the account move, check the first run.
A cron job is a task the server triggers by itself at fixed times: a backup every night, sending a newsletter every quarter of an hour, syncing with an inventory system once an hour. If a cron job stops after an account move, people often only notice days later. That is why it pays to look closely.
How cron jobs work in the KAS
At ALL-INKL you create cron jobs in the KAS. A cron job calls an address at a set time, for example https://my-site.com/wp-cron.php or a script of your own. Optionally you can store a user and password for a protected area, and have the result emailed to you. Each cron job belongs to an account.
Which cron jobs KASmove takes along
When reading the account, KASmove reads all of its cron jobs. If a domain you are moving appears in a cron job's address, it is selected automatically. You can change the selection in the wizard at any time. During the account move, KASmove creates the cron job in the new account with the same settings, including user and password, and only then deletes it in the old account. That way it never runs twice and never stops.
Cron jobs that match no selected domain stay in the old account. In the review step you see exactly which ones those are.
Watch out
Cron jobs that call an address on a domain staying in the old account are not moved. Check them in the list in the wizard before you start.
WP-Cron and real cron jobs
WordPress has its own system for scheduled tasks that runs alongside page views. On websites with few visitors, tasks get delayed; on busy ones it costs performance. Many people therefore switch WP-Cron off in wp-config.php with define('DISABLE_WP_CRON', true); and have a cron job in the KAS call wp-cron.php every 5 to 15 minutes instead. KASmove recognises exactly these cron jobs by the domain in the address.
Checking after the account move
- Open the cron jobs in the new account's KAS and check that all expected entries are there.
- If you turned on the result email: does it arrive after the next run?
- Check the results: did the newsletter go out, was the backup created, were new orders imported?
- If a cron job calls a script via a fixed server path, the path must contain the new login.
Tips for robust cron jobs
- Call scripts via the domain, not via fixed server paths. Then they survive any account move.
- Give every cron job a descriptive comment, such as “Shop: stock sync”.
- Protect scripts that only the cron job should call with a user and password or a secret parameter.
- Have important tasks email you the result.
Typical cron jobs and what matters
- WordPress (wp-cron.php): Runs via an address on your domain and therefore moves along. Make sure the address is still reachable after the account move, for example that it is not behind directory protection.
- Shop imports and price updates: Often call a script with a secret key in the address. The key stays the same as long as the file was copied.
- Newsletter sending: Sends in batches. On the day after the account move, check that the queue has been processed.
- Backups and clean-up scripts: Often write to folders with a fixed path. It is worth checking the settings for the old login in the path.
Cron jobs that call an address on another domain that does not move stay in the old account. That is intentional: they belong to the website that keeps running there. If such a cron job does belong to the moved project, simply create it again in the new account and delete it in the old one.
More about the whole process is in the guide.