mseppae (owner)

Revisions

gist: 198069 Download_button fork
public
Public Clone URL: git://gist.github.com/198069.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
Inside step: "When the workers have finished the export task" and inside the loop with timeout condition commented out:
 
    p "amount of delayed jobs: #{Sk::UnprocessedOrder.connection.select_value("select count(*) from delayed_jobs;")}" # => 1
    p "database: #{Sk::UnprocessedOrder.connection.current_database}" # => shop_test
 
From another terminal window:
 
mysql -u root shop_test
select count(*) from delayed_jobs; # => 0