質問編集履歴
2
パス修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,35 +22,35 @@
|
|
22
22
|
|
23
23
|
2017-09-12T03:38:47.079Z 60023 TID-ow8lyypd4 WARN: NameError: uninitialized constant Foo::Baz_User1
|
24
24
|
|
25
|
-
2017-09-12T03:38:47.080Z 60023 TID-ow8lyypd4 WARN: /
|
25
|
+
2017-09-12T03:38:47.080Z 60023 TID-ow8lyypd4 WARN: ~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/activesupport-5.0.6/lib/active_support/inflector/methods.rb:270:in `const_get'
|
26
|
-
|
26
|
+
|
27
|
-
/
|
27
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/activesupport-5.0.6/lib/active_support/inflector/methods.rb:270:in `block in constantize'
|
28
|
-
|
28
|
+
|
29
|
-
/
|
29
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/activesupport-5.0.6/lib/active_support/inflector/methods.rb:266:in `each'
|
30
|
-
|
30
|
+
|
31
|
-
/
|
31
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/activesupport-5.0.6/lib/active_support/inflector/methods.rb:266:in `inject'
|
32
|
-
|
32
|
+
|
33
|
-
/
|
33
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/activesupport-5.0.6/lib/active_support/inflector/methods.rb:266:in `constantize'
|
34
|
-
|
34
|
+
|
35
|
-
/
|
35
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/activesupport-5.0.6/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
|
36
|
-
|
36
|
+
|
37
|
-
/
|
37
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/sidekiq-3.4.1/lib/sidekiq/processor.rb:46:in `process'
|
38
|
-
|
38
|
+
|
39
|
-
/
|
39
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
|
40
|
-
|
40
|
+
|
41
|
-
/
|
41
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
|
42
|
-
|
42
|
+
|
43
|
-
/
|
43
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:in `dispatch'
|
44
|
-
|
44
|
+
|
45
|
-
/
|
45
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
|
46
|
-
|
46
|
+
|
47
|
-
/
|
47
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
|
48
|
-
|
48
|
+
|
49
|
-
/
|
49
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
|
50
|
-
|
50
|
+
|
51
|
-
/
|
51
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
|
52
|
-
|
52
|
+
|
53
|
-
/
|
53
|
+
~/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
|
54
54
|
|
55
55
|
```
|
56
56
|
|
1
文体の統一
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Sidekiqで動的に生成したworker
|
1
|
+
Sidekiqで動的に生成したworkerを実行すると、NameError:uninitialize constant〜が発生。
|
test
CHANGED
@@ -2,9 +2,13 @@
|
|
2
2
|
|
3
3
|
railsでsidekiqを用いた非同期処理を実装しようと思っています。
|
4
4
|
|
5
|
-
クラス・キューをユーザーごとに動的生成を行い、非同期処理をユーザーごとに任意で実行・停止できるようにしたい。
|
5
|
+
クラス・キューをユーザーごとに動的生成を行い、非同期処理をユーザーごとに任意で実行・停止できるようにしたいのですが、下記エラーでキューが実行されません。
|
6
|
-
|
6
|
+
|
7
|
-
(
|
7
|
+
(Foo::Baz_User*というクラス、:work-*というキューを生成していきたいです。)
|
8
|
+
|
9
|
+
今回のような場合、関数で生成するためスコープの兼ね合いなどで参照できないということでしょうか?
|
10
|
+
|
11
|
+
もし対処方法があるようでしたら教えていただきたいと思います。よろしくお願いします。
|
8
12
|
|
9
13
|
|
10
14
|
|