Skip to content

Qlik Sense Task Type Constants

Reference for Qlik Sense task type numeric constants used in Butler.

Overview

Qlik Sense Enterprise on Windows uses numeric constants to identify different task types. Butler uses these same constants internally when processing task events from the Qlik Sense scheduler.

Understanding these constants is helpful when:

  • Debugging task-related issues
  • Analyzing InfluxDB metrics
  • Reviewing Butler logs
  • Understanding the UDP message format from Log4Net appenders

Task Type Values

Type CodeTask TypeDescription
0ReloadReload tasks that refresh app data. The most common task type in Qlik Sense.
1External ProgramTasks that execute external programs or scripts on the Qlik Sense server.
2User SyncUser directory synchronization tasks that sync users from LDAP, AD, or other sources.
3DistributeApp distribution tasks that publish apps to other servers or streams.
4PreloadApp preload tasks that cache apps in memory for faster user access.

Butler Support by Task Type

The following table shows which Butler features support each task type:

Task TypeEmail AlertsInfluxDB MetricsSlack/TeamsMQTTNew RelicWebhooks
Reload (0)
External Prog (1)
User Sync (2)
Distribute (3)
Preload (4)

Feature availability

The table above reflects capabilities as of Butler 15.0.0. Reload tasks have the most complete support, while other task types have email and InfluxDB support as their primary notification channels.

Technical Details

UDP Message Format

When Qlik Sense's Log4Net appender sends a UDP message to Butler, the task type is determined by analyzing the log message content and the task metadata retrieved from the Qlik Sense Repository Service (QRS) API.

Butler automatically detects the task type and routes the event to the appropriate handler.

InfluxDB Measurements

Each task type uses separate InfluxDB measurements:

Task TypeSuccess MeasurementFailure Measurement
Reloadreload_task_successreload_task_failed
External Programexternal_program_task_successexternal_program_task_failed
User Syncuser_sync_task_successuser_sync_task_failed
Distributedistribute_task_successdistribute_task_failed
Preloadpreload_task_successpreload_task_failed

See the InfluxDB reference for complete details on tags and fields for each measurement.

Released under the MIT License.