If there are any jobs that appear to be hung or stuck in a PEND (Pending) status, and need to be cleared or aborted, you can use the following CLI command to find the Job ID of the stuck job:
> show jobs all
In the example below, Job ID 4 is a stuck software download:
Environment
Palo Alto Firewall.
PAN-OS 8.1 and above.
Resolution
To clear the hung job, use the following command:
> clear job id <job_id>
Additional Information
In the event that any of the jobs do not "clear up" after clearing the job, one may restart the management server process with the following command:
> debug software restart process management-server
Note: Since this command restarts that management server process, it will kill WebGUI and CLI users. If this is not intended, the command can be run during the maintenance window.