Skip to content

Instantly share code, notes, and snippets.

@kstevens715
Created January 20, 2017 22:36
Show Gist options
  • Save kstevens715/aea142cf9af2e7c694c053de9a85ee0b to your computer and use it in GitHub Desktop.
Save kstevens715/aea142cf9af2e7c694c053de9a85ee0b to your computer and use it in GitHub Desktop.
# app@1290894361f7:/opt/app$ pgrep -af resq
# 461 resque-1.26.0: Waiting for etl_applicant_deferred_heavyweight
# 464 resque-1.26.0: Waiting for cas_3_gpa_deferred_heavyweight
#
# app@1290894361f7:/opt/app$ pgrep -af resq
# 461 resque-1.26.0: Forked 1698 at 1484951377
# 464 resque-1.26.0: Waiting for cas_3_gpa_deferred_heavyweight
# 1698 resque-1.26.0: Processing etl_applicant_deferred_heavyweight since 1484951377 [Etl::ApplicantJob]
#
# for each queue:
# process_output = get_output
#
# if forked?(process_output)
# if child_is_too_old?(process_output)
# return "dead"
# end
# end
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment