app/jobs/group_assignment_repo/create_github_repository_job.rb
# Given an error, retries the job if the number of retries left is positive
# or broadcasts a failure to the group
#
Given an error, retries the job if the number of retries left is positive
or broadcasts a failure to the group
Given an error retries the job if the number of retries left is positive or broadcasts a failure to the group
def handle_error(error, group_assignment, group, invite_status, retries)
      if retries.positive?
        invite_status.waiting!
        CreateGitHubRepositoryJob.perform_later(group_assignment, group, retries: retries - 1)
      else
        invite_status.errored_creating_repo!
        broadcast_error(error, invite_status, group_assignment, group)
        report_error
      end
      logger.warn(error.message)
    end
def handle_error ( error , group_assignment , group , invite_status , retries ) if retries . positive? invite_status . waiting! CreateGitHubRepositoryJob . perform_later ( group_assignment , group , retries : retries - 1 ) else invite_status . errored_creating_repo! broadcast_error ( error , invite_status , group_assignment , group ) report_error end logger . warn ( error . message ) end
Given an error, retries the job if the number of retries left is positive
or broadcasts a failure to the group
Given an error retries the job if the number of retries left is positive or broadcasts a failure to the group
error
<not_specific>
group_assignment
<not_specific>
group
<not_specific>
invite_status
<not_specific>
retries
<not_specific>