<commit_before><% @delayed_job[:pool].each do |key, config| %>
<% identifier = "#{@application}-#{key}" %>
check process delayed_job.<%= identifier %>
  with pidfile <%= @deploy[:deploy_to] %>/shared/pids/delayed_job.<%= identifier %>.pid
  start program = "/bin/su - <%= @deploy[:user] %> -c 'cd <%= @deploy[:current_path] %> && RAILS_ENV=<%= @deploy[:rails_env] %> bundle exec script/delayed_job start --identifier=<%= identifier %> <%= ("--queues=#{config['queues']}" if config['queues']) %>'"
  stop  program = "/bin/su - <%= @deploy[:user] %> -c 'cd <%= @deploy[:current_path] %> && RAILS_ENV=<%= @deploy[:rails_env] %> bundle exec script/delayed_job stop --identifier=<%= identifier %>'"
  if totalmem is greater than 400 MB then restart
  group delayed_job_<%= @application %>_group

<% end %><commit_msg>testing delayed_job without max memory in staging<commit_after><% @delayed_job[:pool].each do |key, config| %>
<% identifier = "#{@application}-#{key}" %>
check process delayed_job.<%= identifier %>
  with pidfile <%= @deploy[:deploy_to] %>/shared/pids/delayed_job.<%= identifier %>.pid
  start program = "/bin/su - <%= @deploy[:user] %> -c 'cd <%= @deploy[:current_path] %> && RAILS_ENV=<%= @deploy[:rails_env] %> bundle exec script/delayed_job start --identifier=<%= identifier %> <%= ("--queues=#{config['queues']}" if config['queues']) %>'"
  stop  program = "/bin/su - <%= @deploy[:user] %> -c 'cd <%= @deploy[:current_path] %> && RAILS_ENV=<%= @deploy[:rails_env] %> bundle exec script/delayed_job stop --identifier=<%= identifier %>'"
  group delayed_job_<%= @application %>_group

<% end %>
{'fraction_non_alphanumeric': 0.22857142857142856, 'fraction_numerical': 0.0018633540372670807, 'mean_word_length': 5.444, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '120605', 'n_tokens_mistral': 606, 'n_tokens_neox': 514, 'n_words': 125}