Apps (backfill/object_job.rb)

woofed-crm · app/jobs/apps/salesforce/backfill/object_job.rb · ruby · MIT
crm, CRM / Leads

Rails job that downloads Salesforce objects using bulk or REST based on size.

# Source: https://github.com/douglara/woofed-crm | License: MIT | Copyright 2026 WOOFED DESENVOLVIMENTO DE SOFTWARES LTDA - ME - CNPJ 60.076.777/0001-61
# Provided via justclaw.it.com; keep this notice with the code.
# frozen_string_literal: true

# Downloads one object, choosing how based on how much there is.
#
# Below the bulk threshold a paged REST query is simpler and finishes sooner: a
# bulk job costs a create, several polls and a download round-trip before the
# first record arrives. Above it, paging REST would spend one API call per 2000
# records against an allocation the customer shares with every other integration
# they run.
class Apps::Salesforce::Backfill::ObjectJob < ApplicationJob
  include GoodJob::ActiveJobExtensions::Concurrency

  self.queue_adapter = :good_job

  # Tw

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key