diff options
Diffstat (limited to 'lib/gitlab_post_receive.rb')
-rw-r--r-- | lib/gitlab_post_receive.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gitlab_post_receive.rb b/lib/gitlab_post_receive.rb index 9f75433..4b80174 100644 --- a/lib/gitlab_post_receive.rb +++ b/lib/gitlab_post_receive.rb @@ -73,7 +73,12 @@ class GitlabPostReceive changes = Base64.encode64(@changes) queue = "#{config.redis_namespace}:queue:post_receive" - msg = JSON.dump({ 'class' => 'PostReceive', 'args' => [@repo_path, @actor, changes], 'jid' => @jid }) + msg = JSON.dump({ + 'class' => 'PostReceive', + 'args' => [@repo_path, @actor, changes], + 'jid' => @jid, + 'enqueued_at' => Time.now.to_f + }) begin GitlabNet.new.redis_client.rpush(queue, msg) |