Background Processing

When the IFS Mobile Client Framework module (FNDMOB) is installed a number of background processes are created.  These include Database Tasks, Database Processes and  Touch Apps specific Batch Queues.

See the Mobile Framework Synchronization Guide and/or the Troubleshooting Touch Apps for more information.

Contents

Database Tasks

The following database tasks are included in IFS Applications to manage Touch Apps data.

Task Name Description
Clean Up Notify Me Notifications Clean up Aurena Notify Me notifications that are older than x days on any device. Suggested number of days is 30.
Clean Up Touch Apps Deleted Failed Transactions Removes Deleted Failed Transactions that are older than x days and any records relating to removed Apps/Devices.  Suggested number of days is 30.
Clean Up Touch Apps Device Locations Removes Device Locations that are older than x days and any records relating to removed Apps/Devices. Suggested number of days is 30.
Clean Up Touch Apps Entity Sync Data Removes Synchronization Data and Out Messages for records relating to removed Apps/Devices or Apps/Devices in the state Disabled or failed to successfully activate and are older than x days.  Suggested number of days is 7.
Clean Up Touch Apps Ignored Failed TransactionsRemoves Ignored Failed Transactions that are older than x days and any records relating to removed Apps/Devices.  Suggested number of days is 30.
Clean Up Touch Apps Interrupted Sync Tasks Removes Synchronization Tasks that are in the state of Posted or Executing and are more than x day(s) old. Suggested number of days is 1.
Clean Up Touch Apps Logs Removes Logs that are older than x days.  Suggested number of days is 100.

 

Note: depending on your system's transaction volumes, you might need to set this to a lower value.
Note: if Extended Logging is enabled, this needs to be set to a lower value.

Clean Up Touch Apps Sync Tasks Removes Synchronization Tasks and Push Queue records that are older than x days and any records relating to removed Apps/Devices.  Suggested number of days is 7.
Clean up Touch Apps Sync Traces Removes Synchronization Traces that are older than x days and any records relating to removed Apps/Devices.  Suggested number of days is 7.
Clean Up Touch Apps Transactional Log Data Removes older Touch Apps Transaction Log Data based on transaction SCN (System Change Number). Suggested cycle is daily at 00:00.

Note:
SCN is database wide number that keeps incrementing on each commit. Backend keeps track of the SCN each Device/App/User was last initialized/synced.
If there are transactions in the log that happened after this number we cannot delete them no matter how old they are until they are synced to the device or get invalidated.
Touch App Batch Schedule Runs the Batch Synchronization process. The default schedule will be set to run every 15 minutes. The schedule for this database task must be equal to or more frequent to the quickest interval defined in Synchronization Rules.
Touch Apps Daily Statistics Captures statistics for synchronized entity times and volumes per Application that are shown on a Mobile App Status lobby page.
Touch Apps schedule for reprocess failed transactions Reprocesses all Failed Transactions for the App/Version.  Suggested reprocess cycle is once per day at 00:00.
Touch Apps scheduled activation Processes any Scheduled Activations for the App/Version.  Suggested cycle is daily at 00:00

All Tasks are enabled by default on enabling the Application.

The Task "Touch App Batch Schedule" will be processed by the Batch Queue Touch App Queue.

 

Database Processes

Database Processes are used in the Push and Grouped Push Synchronization Rule delivery methods.

Delivery Method - Push

A Database Process is used to process the Push Queue. This process checks if there are any Push Queue records that are ready to be executed. If there are Push Queue records to be executed this process creates a Synchronization Task which in terns submits them into a background job. This process is managed in the System Parameters form. The name of this process is Mobile_Db_Process_SYS.Push_Data__.

 

Delivery Method - Grouped Push

A Database Process is used to process the Grouped Push Transaction Queue. This process checks if there are any Grouped Push Transaction Queue records that are ready to be executed. If there are Grouped Push Transaction Queue records to be executed this process will publish the Grouped Push data changes to the filtered mobile users. The name of this process is Mobile_Db_Process_SYS.Grouped_Push_Data__.

 

Touch Apps Batch Queue

The Touch App Queues handle the Batch Synchronization (Touch Apps Queue (Batch)), Push Synchronization (Touch Apps Queue (Push)) and Scheduled Activation (Touch Apps Queue (Init)) processes via three Batch Queues.  The number of processes that are allocated to these Queues will affect the number of Background Jobs that are created when processing Synchronization Tasks.

For the Push synchronization to occur in as real-time as possible the execution plan for is set to run every five seconds by default.

More information on Batch Queue Configuration can be found here.