Product: Transaction Manager & Scheduler
Article Link: http://help.truecommerce.com/en/articles/9730223-scheduler-scheduled-events-configuration-recommendations-for-performance
The Transaction Manager Scheduler system is designed to manage the Importing and Exporting of transactions through a scheduled Events that automatically queue up and execute based on the dates and times assigned to those events.
While this system will continue to operate without need for manual intervention - it is important to understand how the system works in order to maximize your systems configuration.
Event Queuing
Whenever you configure a Scheduled Event to run at a specific time you will need to assign a Start Time to that event which determines when Scheduler will initiate the scheduled event by adding it to your Import/Export Queue.
This queue will then begin executing the Scheduled Events within the list in order that they've been added.
Import/Export Queue
Both your Imports and your Exports have a unique queue to them that determine which events are to run next. As your Scheduler runs your Scheduled Events the system will continue to add each event to the appropriate where it can wait to be executed.
A Scheduled Event start time does not guarantee the event will begin at that time. It will be queued to run at that time, and as such will need to wait until other events scheduled ahead of it (including the currently running one) complete before it can properly begin.
Queue Backlog
As more and more Scheduled Events are queued - it will take longer for each event that's been queued to start, as Scheduler will need to ensure the events prior to it to fully complete.
As such - you may see a large delay between the Scheduled Event start time and the starting of its processing.
Scheduled Events Recommendations
Consolidating Events
It is recommended that you attempt to consolidate as many Scheduled Events as possible in order to reduce the amount of events that need to queue at a single time, which in turn will reduce the delay you see between each event.
For example - rather than having a separate Scheduled Event for your Invoices (810), Purchase Order Acknowledgements (855), and Warehouse Shipping Orders (940) you could consolidate those into a single event - allowing for them all to be imported at the same time,
It is not recommended to have many events, with limited spacing between. Configurations such as 30 events spaced 5 minutes apart will result in large delays across events executing as the system attempts to fully process each one before starting the next.
Spacing Events
While configuring your Scheduled Events - it is recommended that you space your events out by at least an hour (two for larger operations) which allows the system time to complete its Import/Export operations prior to another one being initiated.
Splitting Large Events
If you know that a particular transaction, such as your Advance Ship Notices (856) take the bulk of time to process - you can split this from the rest of your Import Transactions for example allowing maximum process time to be focused on that particular Transaction Type
Arranging Large Events Last
In addition to splitting that large event to its own dedicated event while consolidating smaller ones, it is recommended that you put the largest event towards a later time than the rest - allowing the system to fully process transactions that will be completed must faster prior to the large event firing which will take a long time to process, and thus reduce delays of other transactions that would otherwise end up being queued and waiting until the large event completes in order to start.
rev 8/12/2024