Vocino
(Travis)
2017 年 4 月 10 日午後 7:36
1
Continuing the discussion from How to create a Timed Topic :
I’m noticing a strange bug where a topic I posted in a private category on Friday, to be timed for posting to a public category on Saturday, is now being continuously moved to the top of the latest topics.
The timestamp on it reads “13m” right now and will reset routinely. I’m not sure how often yet as I just noticed this. I’m assuming it’s being triggered possibly every time the clock reaches the hour it was set to or something along those lines.
「いいね!」 4
tgxworld
(Alan Tan)
2017 年 4 月 11 日午前 1:41
3
Are there any errors in your logs?
Vocino
(Travis)
2017 年 4 月 11 日午前 2:09
4
Thinking this might be related?
Recent
Message (2 copies reported)
Job exception: uninitialized constant Jobs::CloseTopic
Backtrace
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/inflector/methods.rb:263:in `const_get'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/inflector/methods.rb:263:in `block in constantize'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/inflector/methods.rb:259:in `each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/inflector/methods.rb:259:in `inject'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/inflector/methods.rb:259:in `constantize'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.4/lib/sidekiq/processor.rb:126:in `block in process'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.4/lib/sidekiq.rb:35:in `block in <module:Sidekiq>'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.4/lib/sidekiq/processor.rb:124:in `process'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.4/lib/sidekiq/processor.rb:81:in `process_one'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.4/lib/sidekiq/processor.rb:69:in `run'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.4/lib/sidekiq/util.rb:17:in `watchdog'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.4/lib/sidekiq/util.rb:25:in `block in safe_thread'
「いいね!」 4
tgxworld
(Alan Tan)
2017 年 4 月 11 日午前 2:22
5
That particular error has been fixed in
committed 02:52AM - 06 Apr 17 UTC
and it isn’t related to the current behavior that you’re seeing.
Can you see if there is a PublishToCategory job in https://<your hostname>/sidekiq/scheduled?
「いいね!」 3
Vocino
(Travis)
2017 年 4 月 11 日午前 2:25
6
Yes, there is.
in 3 days default Jobs::PublishTopicToCategory
{"topic_status_update_id"=>868, "current_site_id"=>"default"}
tgxworld
(Alan Tan)
2017 年 4 月 11 日午前 2:34
7
Thanks @Vocino ! I found the bug and fixed it in
committed 02:32AM - 11 Apr 17 UTC
In the meantime, you can cancel the job manually in https://<your hostname>/sidekiq/scheduled.
「いいね!」 7
Vocino
(Travis)
2017 年 4 月 11 日午前 2:36
8
Cool, thanks for the help!
「いいね!」 1