File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ class TelegramBackgroundWorkerJob < ApplicationJob
10
10
11
11
def perform ( args )
12
12
Rails . logger . info "Performing telegram background job: #{ args } "
13
- action = args . fetch ( " action" )
13
+ action = args . fetch ( : action)
14
14
15
15
case action
16
16
when PostAction ::BAN_USER
17
- trained_message = args . fetch ( " trained_message" )
17
+ trained_message = args . fetch ( : trained_message)
18
18
ban_user_in_group ( trained_message : trained_message )
19
19
when PostAction ::DELETE_ALERT_MESSAGE
20
- chat_id = args . fetch ( " chat_id" )
21
- message_id = args . fetch ( " message_id" )
20
+ chat_id = args . fetch ( : chat_id)
21
+ message_id = args . fetch ( : message_id)
22
22
delete_message ( chat_id : chat_id , message_id : message_id )
23
23
end
24
24
end
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ servers:
9
9
web :
10
10
hosts :
11
11
- 192.168.1.188
12
- # job:
13
- # hosts:
14
- # - 192.168.1.188
15
- # cmd: bin/jobs
12
+ job :
13
+ hosts :
14
+ - 192.168.1.188
15
+ cmd : bin/jobs
16
16
17
17
# Enable SSL auto certification via Let's Encrypt and allow for multiple apps on a single web server.
18
18
# Remove this section when using multiple web servers and ensure you terminate SSL at your load balancer.
@@ -36,10 +36,10 @@ registry:
36
36
env :
37
37
secret :
38
38
- RAILS_MASTER_KEY
39
- clear :
39
+ # clear:
40
40
# Run the Solid Queue Supervisor inside the web server's Puma process to do jobs.
41
41
# When you start using multiple servers, you should split out job processing to a dedicated machine.
42
- SOLID_QUEUE_IN_PUMA : true
42
+ # SOLID_QUEUE_IN_PUMA: true
43
43
44
44
# Set number of processes dedicated to Solid Queue (default: 1)
45
45
# JOB_CONCURRENCY: 3
You can’t perform that action at this time.
0 commit comments