Skip to content

Commit f6214a0

Browse files
committed
fixup! debug
1 parent 7fd85d7 commit f6214a0

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Project.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ uuid = "fab6aee4-877b-4bac-a744-3eca44acbb6f"
33
version = "1.0.0"
44

55
[deps]
6+
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
67
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
78
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
89
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
910

11+
[compat]
12+
Dates = "1.11.0"
13+
1014
[extras]
1115
LibSSH = "00483490-30f8-4353-8aba-35b82f51f4d0"
1216
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/managers.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# Built-in SSH and Local Managers
44

5+
import Dates: now
6+
57
struct SSHManager <: ClusterManager
68
machines::Dict
79

@@ -767,7 +769,7 @@ function kill(manager::LocalManager, pid::Int, config::WorkerConfig; exit_timeou
767769

768770
# Check to see if our child exited, and if not, send an actual kill signal
769771
if !process_exited(config.process)
770-
@warn("Failed to gracefully kill worker $(pid), sending SIGQUIT")
772+
@warn("$(now()) Failed to gracefully kill worker $(pid), sending SIGQUIT")
771773
kill(config.process, Base.SIGQUIT)
772774

773775
sleep(term_timeout)

src/process_messages.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# This file is a part of Julia. License is MIT: https://julialang.org/license
22

3+
import Dates: now
4+
35
# data stored by the owner of a remote reference
46
def_rv_channel() = Channel(1)
57
mutable struct RemoteValue
@@ -206,7 +208,7 @@ function message_handler_loop(r_stream::IO, w_stream::IO, incoming::Bool)
206208
end
207209
readbytes!(r_stream, boundary, length(MSG_BOUNDARY))
208210

209-
println("got msg: ", typeof(msg))
211+
println("$(now()) got msg: ", typeof(msg))
210212
handle_msg(msg, header, r_stream, w_stream, version)
211213
end
212214
catch e

0 commit comments

Comments
 (0)