Managing Your Batch and Scheduled Apex Processes with Relax

  • View
    400

  • Download
    0

Embed Size (px)

DESCRIPTION

Relax is a free, open-source app that provides fine-grained and bulk management of Batch and Scheduled Apex jobs. Join us to learn how to use Relax to mass-schedule a group of jobs, create ordered sequences of jobs that run on schedule, schedule ad-hoc, 'one-off' tasks, and more.

Transcript

  • 1. Relax Effortlessly manage your Batch and Scheduled Apex processes Zach McElrath, Skuid, Lead Developer @zachelrath
  • 2. (un) Safe harbor Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include but are not limited to risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site. Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
  • 3. Testing the waters Have you ever Written Scheduled Apex? Tried to deploy Scheduled Apex between orgs, and had to manually delete each Scheduled Job, 1-by-1, then recreate them, 1-by-1? Written Batch Apex? Tried to run a sequence of Batch Apex jobs one after the other? Wished you could run a sequence of Batch Apex jobs every 15 minutes, every day --- without recoding the sequence keep-alive logic in the finish() method of every Batch Apex class?
  • 4. Relax lets you 1. Manage your individually-Scheduled Apex jobs Activate/deactivate en masse, deploy via data loader, mass edit 2. Run scheduled sequences of Batch Apex jobs, as often as every 5 minutes, every day, without writing any additional code 3. Easily reuse common Batch Apex code
  • 5. DEMO 1: Mass-schedule, deactivate, and activate a group of Scheduled Apex Jobs with Relax
  • 6. Standard method for scheduling an Apex job: 1 by 1
  • 7. Standard method for managing jobs: 1 by 1
  • 8. Hassles with standard scheduled job management 1. Jobs have to be created 1-by-1 2. Jobs have to be unscheduled 1-by-1 in order to: 1. Make changes to any code that is referenced by a jobs Apex Class 2. Deploy changes to code that referenced by a jobs Apex Class 3. Change the Apex Class associated with a job
  • 9. The Relax alternative: mass-management of jobs
  • 10. Individually-scheduling an Apex Class with Relax 1. Enter Job Name 2. Pick an Apex Class that implements the Schedulable interface 3. Enter Cron Schedule
  • 11. DEMO 2: Create an ordered sequence of Relax Jobs that Relax will run every minute
  • 12. Batchable Apex class that Relax can schedule
  • 13. (another) Batchable Apex class that Relax can schedule
  • 14. Batch Apex, scheduled with Relax
  • 15. DEMO 3: Use Relax Job parameters to rapidly create scheduled, batch Mass Update jobs
  • 16. Leveraging Relax Job Parameters: Mass Update
  • 17. How do I get my hands on this??? Relax is free and open-source! 1. Install from AppExchange (bit.ly/install-relax) 2. Contribute / enhance via Github (bit.ly/about-relax) Disclaimer: I have a full-time job at Skuid. And, hopefully, a life.
  • 18. Zach McElrath Lead Developer, @zachelrath bit.ly/install-relax bit.ly/about-relax