A not enabled task can be run in the task view of the nprinting webconsole using "run now"
If you run a not enabled task under NPrinting->Admin Console-> Tasks->Publish Task
e.g. https://servername:4993/#/tasks/publish
you will receive a message generates a message:
The task with id 'c47e20ad-f36d-49cb-9079-35e2031c3c8e' could not be scheduled for execution.
reviewing the error logs you will find:
Qlik.NPrinting.WebEngine 18.0.4.0 Qlik.NPrinting.WebEngine.Controllers.HttpHelper 20180316T112845.410+01:00 ERROR VYGLBAPV001 peter 0 0 0 0 0 0 0 0 Exception serving the request http://vyglbapv001:4996/npe/tasks/publish/b7f5d512-3c24-4c31-ac3d-379b7b642057/run System.Exception: Task b7f5d512-3c24-4c31-ac3d-379b7b642057 cannot be enqueued because it is not enabled↵↓ at Qlik.NPrinting.Repo.Service.TaskExecutionService.<>c__DisplayClass6.b__5(ISession session) in c:\Jws\release-18.0.x\server\NPrinting\src\Repo\Service\TaskExecutionService.cs:line 67↵↓ at Qlik.NPrinting.Repo.Service.TaskExecutionService.EnqueueTask(TaskIdConfig taskConfig, SchedulingOptions schedulingOptions, Nullable`1 triggerId) in c:\Jws\release-18.0.x\server\NPrinting\src\Repo\Service\TaskExecutionService.cs:line 104↵↓ at Qlik.NPrinting.WebEngine.Controllers.PublishReportTasksController.<>c__DisplayClass8.b__7() in c:\Jws\release-
[...]
System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)↵↓ at System.Net.ListenerAsyncResult.IOCompleted(ListenerAsyncResult asyncResult, UInt32 errorCode, UInt32 numBytes)↵↓ at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)↵↓=============↵↓ Enviroment:
NP Server 17
NP Server 18
Disabled tasks still have the ability to use run now.
Created a bug OP-7285 with R&D to change the UI and the status of the task message.
Fix will follow in one of the next releases with the following behaviour.
- Disabled Tasks do not have the Run now options
- Multiselections will only run the tasks which are "enabled"