This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new a70cbded Name that thread
a70cbded is described below
commit a70cbdedd861a63705119083bb7bfa4fdad97d7a
Author: Sebb <[email protected]>
AuthorDate: Tue Jul 22 20:46:10 2025 +0100
Name that thread
---
tools/pubsub-ci-email.rb | 6 +++---
tools/pubsub2rake.rb | 5 +++--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/tools/pubsub-ci-email.rb b/tools/pubsub-ci-email.rb
index b4f05342..2dd205dd 100755
--- a/tools/pubsub-ci-email.rb
+++ b/tools/pubsub-ci-email.rb
@@ -34,7 +34,7 @@ class PubSub
require 'fileutils'
ALIVE = File.join('/tmp', "#{File.basename(__FILE__)}.alive") # TESTING ONLY
-
+ NAME = File.basename(__FILE__)
@restartable = false
@updated = false
def self.listen(url, creds, options={})
@@ -105,9 +105,9 @@ class PubSub
end
puts stamp 'Done with thread' if debug
end # thread
- puts stamp "Pubsub thread started #{url} ..."
+ puts stamp "Thread started #{NAME} #{url} ..."
ps_thread.join
- subject = 'Pubsub thread finished %s...' % (@updated ? '(code updated) ' :
'')
+ subject = "Thread finished #{NAME} %s..." % (@updated ? '(code updated) '
: '')
puts stamp subject
mail_notify subject, <<~EOD
Restartable: #{@restartable}
diff --git a/tools/pubsub2rake.rb b/tools/pubsub2rake.rb
index 3a0ad9e9..b4b96dfb 100755
--- a/tools/pubsub2rake.rb
+++ b/tools/pubsub2rake.rb
@@ -18,6 +18,7 @@ class PubSub
require 'fileutils'
ALIVE = File.join('/tmp', "#{File.basename(__FILE__)}.alive") # TESTING ONLY
+ NAME = File.basename(__FILE__)
@restartable = false
@updated = false
@@ -86,9 +87,9 @@ class PubSub
end
puts stamp 'Done with thread' if debug
end # thread
- puts stamp "Pubsub thread started #{url} ..."
+ puts stamp "Thread started #{NAME} #{url} ..."
ps_thread.join
- puts stamp 'Pubsub thread finished %s...' % (@updated ? '(updated) ' : '')
+ subject = "Thread finished #{NAME} %s..." % (@updated ? '(code updated) '
: '')
if @restartable
$stderr.puts stamp 'restarting'