• nmilojevic1's avatar
    Add retry logic for failures during import · 73afd158
    nmilojevic1 authored
    - Extract ImportFailure retry and log mechanism
    - Try 3 times for exceptions:
         GRPC::DeadlineExceeded
         ActiveRecord::QueryCanceled
    - Store each retry failure and retry_count to ImportFailure
    - Retriable config can be set via ENV variables:
         RELATION_IMPORT_TRIES
         RELATION_IMPORT_BASE_INTERVAL
         RELATION_IMPORT_MULTIPLIER
         RELATION_IMPORT_RAND_FACTOR
    - Migration scripts to:
         Add retry_count and group_id to ImportFailure table
         Add conditional index for project and group to ImportFailure table
    73afd158
39100-retry-failures-during-import.yml 95 Bytes