How is the package refresh done when the package source itself is modified (and not the package on the console)?
search cancel

How is the package refresh done when the package source itself is modified (and not the package on the console)?

book

Article ID: 181461

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

Software Delivery packages are updated automatically on the Notification Server based on two different scheduled tasks:

NS.Package Distribution Point Update Schedule.{29a2b641-222a-43b0-830c-a25c59e93fe4}

 

(runs every 10 minutes)

NS.Package Refresh.{bd6bf880-bfae-4dad-b746-e8be99f3b8a8}

 

(runs every day at 03:30)

 

If a package is updated on the source directly (UNC share, local directory on the Notification Server) when would the package be updated?

Environment

ITMS 7.x, 8.x

Resolution

The Package Distribution Point Update Schedule that runs every 10 minutes executes the following SQL query:

SELECT vItem.Guid
  FROM SWDPackage
  JOIN vItem ON vItem.Guid = SWDPackage.PackageId AND SWDPackage._Latest = 1
 WHERE DistPointsLastUpdated IS NULL
    OR vItem.ModifiedDate > SWDPackage.DistPointsLastUpdated

As you can see, we check for packages that have not been updated yet (DistPointsLastUpdated IS NULL) or packages that have been modified on the console, so if a package source is modified without updating the Software Delivery package, this will not be updated for Package Server and Client before the nightly snapshots execution ('Package Refresh' schedule).