Skip to content
Snippets Groups Projects
Select Git revision
  • rd-create-triage-page
  • add-learn-more-link-disable-pat-for-enterprise-users
  • overdue-finalize-background-migration--delete-orphaned-partitioned-ci-runner-machine-records
  • overdue-finalize-background-migration--backfill-ci-build-trace-metadata-project-id
  • overdue-finalize-background-migration--backfill-ci-secure-file-states-project-id
  • rlehmann1-kr-policies
  • overdue-finalize-background-migration--backfill-ci-job-artifact-states-project-id
  • overdue-finalize-background-migration--backfill-ci-builds-runner-session-project-id
  • overdue-finalize-background-migration--backfill-ml-candidate-metrics-project-id
  • overdue-finalize-background-migration--make-security-policy-bots-private
  • overdue-finalize-background-migration--create-jira-cloud-app-integration-for-jira-connect-subscription
  • overdue-finalize-background-migration--backfill-vulnerability-occurrence-identifiers-project-id
  • overdue-finalize-background-migration--backfill-protected-environment-approval-rules-protected-environment-group-id
  • overdue-finalize-background-migration--backfill-new-audit-event-tables
  • naohashizume/set-gitaly-skip-compile-to-false
  • 505826-hide-relationship-type-options-in-free-tier
  • aregnery/ui-polish-to-do-list
  • 518610-simplify-logic
  • 473109-security-report-metrics
  • 521763-vue3-migration-value_stream_aggregation_status_spec
  • v17.7.6-ee protected
  • v17.8.4-ee protected
  • v17.9.1-ee protected
  • v17.8.3-ee protected
  • v17.7.5-ee protected
  • v17.9.0-ee protected
  • v17.9.0-rc42-ee protected
  • v17.6.5-ee protected
  • v17.7.4-ee protected
  • v17.8.2-ee protected
  • v17.6.4-ee protected
  • v17.7.3-ee protected
  • v17.8.1-ee protected
  • v17.8.0-ee protected
  • v17.7.2-ee protected
  • v17.8.0-rc42-ee protected
  • v17.5.5-ee protected
  • v17.6.3-ee protected
  • v17.7.1-ee protected
  • v17.7.0-ee protected
40 results

duplicate_job.rb

  • Bob Van Landuyt's avatar
    acd89bf9
    Mark duplicate jobs in Sidekiq · acd89bf9
    Bob Van Landuyt authored and Kamil Trzciński's avatar Kamil Trzciński committed
    This marks a job as duplicate when there was already a job in the same
    queue with the same arguments.
    
    We do this by storing a key in Redis based on the argumens, worker and
    queue when a job gets scheduled. If another job gets scheduled and the
    key already exists, we mark the job as duplicate.
    
    When a job starts, we delete its key from Redis.
    
    Later we can use this for dropping jobs from redis if they are
    idempotent.
    acd89bf9
    History
    Mark duplicate jobs in Sidekiq
    Bob Van Landuyt authored and Kamil Trzciński's avatar Kamil Trzciński committed
    This marks a job as duplicate when there was already a job in the same
    queue with the same arguments.
    
    We do this by storing a key in Redis based on the argumens, worker and
    queue when a job gets scheduled. If another job gets scheduled and the
    key already exists, we mark the job as duplicate.
    
    When a job starts, we delete its key from Redis.
    
    Later we can use this for dropping jobs from redis if they are
    idempotent.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.