The ECL Scheduler ECL Scheduler Boca Raton Documentation Team We welcome your comments and feedback about this document via email to docfeedback@hpccsystems.com Please include Documentation Feedback in the subject line and reference the document name, page numbers, and current Version Number in the text of the message. LexisNexis and the Knowledge Burst logo are registered trademarks of Reed Elsevier Properties Inc., used under license. HPCC Systems is a registered trademark of LexisNexis Risk Data Management Inc. Other products, logos, and services may be trademarks or registered trademarks of their respective companies. All names and example data used in this manual are fictitious. Any similarity to actual persons, living or dead, is purely coincidental. HPCC Systems The Ecl Scheduler Introduction The ECL Scheduler is a component process installed with the HPCC system platform. It typically starts with the platform. An interface to the scheduler is available through ECL Watch. The ECL Scheduler interface allows you to see a list of scheduled workunits. It can also trigger an event. An Event is a case-insensitive string constant naming the event to trap. A command line tool, scheduleadmin is available on the server installed in /opt/HPCCSystems/bin. ECL Scheduling ECL Scheduling provides a means of automating processes within ECL code or to chain processes together to work in sequence. For example, you can write ECL code that watches a landing zone for the arrival of a file, and when it arrives, sprays it to Thor, processes it, builds an index, and then adds it to a superfile. How it Works ECL Scheduling is event-based. The ECL Scheduler monitors a Schedule list containing registered Workunits and Events and executes any Workunits associated with an Event when that Event is triggered. Your ECL Code can execute when an Event is triggered, or can trigger an Event. If you submit code containing a WHEN clause, the Event and Workunit registers in the Schedule list. When that Event triggers, the Workunit compiles and executes. When the Workunit completes, ECL Scheduler removes it from the Schedule list. For example, if you submit a Workunit using WHEN(‘Event1’,’MyEvent’, COUNT(2)) in the appropriate place, it will execute twice (the value of COUNT) before the ECL Scheduler removes it from the Schedule list and the Workunit is marked as completed. ECL Usage The ECL Scheduler is a tool that can perform a specific action based on a specific event. The following functions can be viewed or manipulated in the scheduler. WHEN NOTIFY EVENT CRON WAIT DFU Monitoring and Events The following are supported methods for the ECL Scheduler included in the ECL Standard Library Reference.