Coder Social home page Coder Social logo

dschibster / sfdx-batch-orchestrator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ianhuang/apex-batch-job-scheduler

10.0 1.0 2.0 1.34 MB

A fork of the Salesforce Labs unmanaged Package for organizing Batch Jobs and their Schedules via a record-based Scheduling Configuration, including dependencies and ad-hoc runs.

Home Page: https://dschibster.github.io/sfdx-batch-orchestrator/

License: Other

Apex 94.79% JavaScript 0.15% Shell 5.07%
app scheduler cron framework apex visualforce lightning orchestration batch-job dependency salesforce sfdx

sfdx-batch-orchestrator's Introduction

Logo

Icons (Clock, Database) made by dmitri13 and Smashicons from www.flaticon.com

codecov Code Coverage and Release Publish docs via GitHub Pages

Installation

Deploy to Salesforce Deploy to Salesforce
For your Sandbox:
Deploy to Salesforce

SFDX Batch Orchestrator

This is a fork from the original Apex Batch Job Scheduler from Salesforce Labs, including several improvements.

Features

  • Configuration of Batch Job Schedules from within a Salesforce App
  • Options to configure Hourly, Daily, Weekly, Monthly or Yearly schedules, with automatic generation of Cron Expressions
  • If the options presented don't fit, you can also write your own Cron Expression!
  • If you already have a Batch Job running, you can even incorporate it without much hassle!
  • Grouping of Batch Jobs to handle dependencies
  • Flexible switching of Batch Sizes in case of scaling problems
  • Logging of Batch Job results to see if they were successful
  • Options to directly run any Batch Job or Schedule that is currently scheduled from the UI
  • Enhanced Logging! Now allows you to log information and successes/failures in a Batch Job. More information available in the Documentation.

Documentation

The documentation has moved! Please refer to the project GitHub Page of this repository here: https://dschibster.github.io/sfdx-batch-orchestrator

sfdx-batch-orchestrator's People

Contributors

actions-user avatar dschibster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sfdx-batch-orchestrator's Issues

Possibility to start Jobs from a Flow Action

This is to make it easier to incorporate the Batch Jobs in Flows that you might want to create on your own. Will also make it possible to start the PoC with sub-hourly schedules.

MIXED_DML_OPERATION

BatchJobLogger throws an error with the "logLegacy" method.

System.DmlException: Failed to save batch job log: Insert failed. First exception on row 0; first error: MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): Batch_Job_Log__c, original object: User: []

The error comes from:
Class.BatchJobLogger.logLegacy: line 183, column 1

This actually happened while running one of our test-classes.
Is there anything we can do here?

Log into Nebula Logger

Hey Dennis,

awesome tool from an awesome guy ๐Ÿ˜‰

we have several batch jobs scheduled which is working fine. But for logging, we are using Nebula Logger since the tool is more sophisticated for logging. Is it possible to combine both? The batch job logs can show whether the job was successfull, but Nebula allows us to log business logic related issues, but there we don't see whether the job was successful. It would be great to allow users to select the logging system.

Process could look like:

  1. Batch Orchestrator starts with a job.
  2. In the code of the job, we are using Logger.info to log stuff
  3. Job was successful, so Orchestrator marks the log as successful (or at least, not as an error)
  4. Both information (Status of job + business logic) is stored in one log

If business logic calls Logger.error(), the job/log should be marked as failed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.