Commit 230f6910 authored by Stan Hu's avatar Stan Hu
Browse files

Add a log message when a project is scheduled for destruction for debugging

parent bb953ea4f2db
......@@ -1157,7 +1157,10 @@ def wiki
def schedule_delete!(user_id, params)
# Queue this task for after the commit, so once we mark pending_delete it will run
run_after_commit { ProjectDestroyWorker.perform_async(id, user_id, params) }
run_after_commit do
job_id = ProjectDestroyWorker.perform_async(id, user_id, params)"User #{user_id} scheduled destruction of project #{path_with_namespace} with job ID #{job_id}")
update_attribute(:pending_delete, true)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment