NetXMS Support Forum

English Support => General Support => Topic started by: saksham.adyso on October 10, 2024, 07:41:26 AM

Title: Run sheduled deployment
Post by: saksham.adyso on October 10, 2024, 07:41:26 AM
When the deployment is run as a scheduled task, the log writes:
2024.10.08 17:45:00.732 *D* [packages ] CreatePackageDeploymentTask: invalid package id 0
2024.10.08 17:45:00.732 *D* [packages ] ExecuteScheduledPackageDeployment: cannot create deployment task for package
If I run the deployment manually, everything goes correctly and the package is installed. I tried both the package name as a parameter and its index.

Title: Re: Run sheduled deployment
Post by: Victor Kirhenshtein on October 10, 2024, 01:29:29 PM
Task handler Agent.DeployPackage expects parameter string as set of key=value entries separated by semicolons. Currently only one key is supported - "package". So if you have package with ID 123 then setting task parameter to
package=123
should do the trick.

Best regards,
Victor