Apex Test in Org Credentials and/or Git Backups in Git Snapshots Are Not Running at the Specified Frequency

When opening org credentials and/or Git snapshots you may have noticed that the Apex test and/or the Git backups are not running at the frequency that has been set. You can find the user that is running these jobs following the steps below:

1. Go to Setup > Scheduled Jobs.

2. Find a job named Copado.

3. Check the user who submitted the job.

Now that the user has been identified, check if the user has both a package license and a Copado license assigned.

For the package license go to Setup > Installed Packages, click on Manage Licenses next to the Copado Deployer package. The user should be listed under Licensed Users.

For the Copado license go to the Copado License Manager tab. The user should be listed under Copado Users.

If the user that submitted the Copado job doesn't have any of these two licenses, you have two options:

1. Assign the missing license(s).
2. Recreate the Copado job with a user that has both licenses.

You can do this following the steps below:

1. Remove Copado from the Job Name field in the Scheduled Apex page.
2. Log in with a user that has a Copado license assigned.
3. Open an Org Credential record that has Test Frequency set to anything but None.
4. Click on Edit in the record and save it without changing anything.
5. Go back to the Scheduled Jobs page. The Copado job should be there, but this time it will be submitted by the user that has the Copado license assigned.

If you want to set a different Preferred Start Time in the job than the one that is set automatically, you will have to recreate the job following these steps:

1. Remove Copado from the Job Name field in the Scheduled Apex page.
2. Log in with a user that has a Copado license assigned.
3. Navigate to the Apex Classes page under Setup.
4. Click on Schedule Apex.
5. Enter Copado in the Job Name field. The name must be Copado to prevent the class from being scheduled again when editing an Org Credential or a Git Snapshot record.
6. Select Scheduler as Apex Class.
7. Set the Frequency to Weekly and select all the days.
8. Select the Start and End times and a Preferred Start Time.
9. Click on Save.


How did we do?