Timed topic's date posted keeps moving

(Travis) #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.

(Alan Tan) #3

Are there any errors in your logs?

(Travis) #4

Thinking this might be related?

Message (2 copies reported)

Job exception: uninitialized constant Jobs::CloseTopic

/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport- `const_get'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport- `block in constantize'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport- `each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport- `inject'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport- `constantize'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport- `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'

(Alan Tan) #5

That particular error has been fixed in

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?

(Travis) #6

Yes, there is.

in 3 days	default	Jobs::PublishTopicToCategory	
{"topic_status_update_id"=>868, "current_site_id"=>"default"}

(Alan Tan) #7

Thanks @Vocino! I found the bug and fixed it in

In the meantime, you can cancel the job manually in https://<your hostname>/sidekiq/scheduled.

(Travis) #8

Cool, thanks for the help!

(Alan Tan) #9