gitlab-org--gitlab-foss/config/initializers
Sean McGivern f4e94c6ff7 Make usage ping scheduling more robust
On GitLab.com, we see that cron jobs sometimes don't run. This appears to be
because the process that polls for current cron jobs only has a 60 second
validity period, so if (for whatever reason) it misses those 60 seconds, we have
to wait until the next execution.

For the usage ping, this is particularly problematic, as that's only scheduled
to run once a week.

Changing it to run for every minute in a 10 minute period should work around
this, if the above diagnosis is correct. The job itself obtains an exclusive
lease for 24 hours, so rescheduling in quick succession is safe.
2017-10-16 10:31:20 +01:00
..
0_acts_as_taggable.rb Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
0_inflections.rb Incorporate review 2017-09-04 15:44:46 +02:00
0_post_deployment_migrations.rb
1_settings.rb Make usage ping scheduling more robust 2017-10-16 10:31:20 +01:00
2_app.rb
5_backend.rb Reinstall shell on the test env if it's outdated 2017-06-19 17:06:17 -04:00
6_validations.rb Allow a failure_wait_time of 0 for storage access 2017-08-16 14:15:50 +02:00
7_prometheus_metrics.rb Update Prometheus Client MMAP gem to version that fixes performance degradation caused by workers churn 2017-08-29 15:56:13 +02:00
7_redis.rb Support multiple Redis instances based on queue type 2017-07-11 03:35:47 +00:00
8_gitaly.rb Remove option to disable Gitaly completely 2017-07-07 12:48:34 +02:00
8_metrics.rb Adds cacheless render to Banzai object render 2017-09-06 15:35:35 +01:00
active_record_array_type_casting.rb Only create commit GPG signature when necessary 2017-08-16 18:57:50 +02:00
active_record_data_types.rb Fix MySQL schema dump for timestamp 2017-06-22 09:21:23 -07:00
active_record_locking.rb Re-enable SqlInjection and CommandInjection 2017-08-08 10:50:54 -04:00
active_record_mysql_timestamp.rb Make sure MySQL would not use CURRENT_TIMESTAMP 2017-08-15 19:07:28 +08:00
active_record_preloader.rb Do not try to preload Commits when using Note.includes(:noteable) 2017-05-31 11:12:26 -05:00
active_record_table_definition.rb Add datetime_with_timezone to table definition 2017-06-22 09:21:23 -07:00
additional_headers_interceptor.rb
ar5_batching.rb
ar_speed_up_migration_checking.rb Make ActiveRecord::Migrator idempotent again in test env 2017-05-29 14:09:24 +02:00
attr_encrypted_no_db_connection.rb
backtrace_silencers.rb
bootstrap_form.rb Convert app/views/profiles/show.html.haml to bootstrap_form 2017-06-22 15:42:44 +01:00
bullet.rb
carrierwave.rb Update Carrierwave and fog-core 2017-05-01 20:15:16 +00:00
chronic_duration.rb
connection_fix.rb
cookies_serializer.rb
date_time_formats.rb
default_url_options.rb
devise.rb Merge branch 'master' into digitalmoksha/gitlab-ce-feature/verify_secondary_emails 2017-10-05 12:48:22 +02:00
devise_password_length.rb.example
disable_email_interceptor.rb
doorkeeper.rb Clean up read_registry scope changes 2017-09-18 08:39:01 -04:00
doorkeeper_openid_connect.rb Upgrade doorkeeper-openid_connect 2017-09-20 17:38:33 +02:00
email_template_interceptor.rb
etag_caching.rb
fast_gettext.rb Ignore fuzzy translations 2017-08-31 14:10:04 +02:00
fix_local_cache_middleware.rb
flipper.rb Re-add Feature.register_feature_groups which is already documented 2017-07-10 15:56:23 +02:00
forbid_sidekiq_in_transactions.rb Fix keys seed 2017-06-02 12:37:57 -05:00
gettext_rails_i18n_patch.rb Load only the currently needed JS locale file 2017-10-04 11:23:52 +00:00
gitlab_shell_secret_token.rb
gitlab_workhorse_secret.rb
go_get.rb
gollum.rb
grape_route_helpers_fix.rb Resolve "More RESTful API: include resource URLs in responses" 2017-07-25 09:35:45 +00:00
grpc.rb Add grpc.log for Gitaly 2017-10-03 11:28:40 +00:00
hamlit.rb Enable the Style/TrailingCommaInArguments cop 2017-05-10 18:25:45 +02:00
health_check.rb
kaminari_config.rb
lograge.rb Detect n+1 issues involving Gitaly 2017-09-19 10:55:37 +00:00
math_lexer.rb
mime_types.rb
mysql_ignore_postgresql_options.rb
mysql_set_length_for_binary_indexes.rb use Module#prepend instead of alias_method_chain 2017-07-27 15:46:03 +02:00
omniauth.rb Define ldap methods at runtime 2017-08-24 17:33:53 +02:00
peek.rb Bump peek-performance_bar to 1.3.0 and get rid of a monkey-patch 2017-07-18 13:56:36 +02:00
plantuml_lexer.rb
postgresql_cte.rb Use CTEs for nested groups and authorizations 2017-05-17 16:51:08 +02:00
postgresql_limit_fix.rb
postgresql_opclasses_support.rb Fix regular expression used for opclasses to not be confused by partial index clause 2017-09-19 11:52:14 +01:00
premailer.rb
rack_attack.rb.example
rack_attack_git_basic_auth.rb
rack_attack_logging.rb
rack_lineprof.rb
relative_naming_ci_namespace.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
relative_url.rb.sample
request_context.rb
request_profiler.rb
routing_draw.rb
rspec_profiling.rb Enable RSpec profiling only if RSPEC_PROFILING_POSTGRES_URL is not empty 2017-05-19 12:15:49 +02:00
rugged_use_gitlab_git_attributes.rb Speed up used languages calculation on charts page 2017-06-16 11:14:41 +01:00
secret_token.rb Upgrade doorkeeper-openid_connect 2017-09-20 17:38:33 +02:00
sentry.rb Send API parameters as extra data for sentry errors 2017-10-05 18:31:34 -03:00
server_uptime.rb 31616-add-uptime-of-gitlab-instance-in-admin-area 2017-05-29 15:46:25 -05:00
session_store.rb current_application_settings belongs on Gitlab::CurrentSettings 2017-08-31 13:38:33 +01:00
sherlock.rb
sidekiq.rb Support multiple Redis instances based on queue type 2017-07-11 03:35:47 +00:00
smtp_settings.rb.sample
static_files.rb Never connect to webpack-dev-server over SSL 2017-09-15 14:41:52 +02:00
time_zone.rb
trusted_proxies.rb Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
warden.rb
workhorse_multipart.rb Update form to properly set the path 2017-08-22 11:33:18 +02:00
wrap_parameters.rb