Permalink
Please
sign in to comment.
Browse files
Setup Slack notifications for completed jobs.
- Notifications for: - Once a seed job is done - Once a download job is done - Once analysis is complete - Fix a bad url in sitemap config - Update Rubocop config - Add Slack Notification gem: https://github.com/stevenosloan/slack-notifier
- Loading branch information...
Showing
with
21 additions
and 1 deletion.
- +1 −0 .rubocop.yml
- +1 −0 Gemfile
- +2 −0 Gemfile.lock
- +1 −0 app/jobs/application_job.rb
- +4 −0 app/jobs/textfilter_job.rb
- +2 −0 app/jobs/wasapi_download_job.rb
- +2 −0 app/jobs/wasapi_seed_job.rb
- +1 −0 config/application.yml.example
- +6 −0 config/initializers/slack.rb
- +1 −1 config/sitemap.rb
@@ -1,4 +1,5 @@ | |||
# frozen_string_literal: true | |||
|
|||
# Methods for Jobs. | |||
class ApplicationJob < ActiveJob::Base | |||
end |
@@ -0,0 +1,6 @@ | |||
# frozen_string_literal: true | |||
|
|||
SLACK = Slack::Notifier.new ENV['SLACK_WEBHOOK_URL'], | |||
channel: '#auk-jobs', | |||
username: 'auk-bot', | |||
icon_emoji: ':auk:' |
0 comments on commit
a45e629