Skip to content

Commit

Permalink
Fixed init transtion bug for task worker agent.
Browse files Browse the repository at this point in the history
  • Loading branch information
keita committed Jan 4, 2015
1 parent 001bb43 commit 219b731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/pione/agent/task-worker.rb
Expand Up @@ -58,6 +58,7 @@ def transit_to_init
@request_from = @tuple_space.attribute("request_from")
@session_id = @tuple_space.attribute("session_id")
@client_ui = @tuple_space.attribute("client_ui")
super
end

# Take a task and turn it to foreground.
Expand Down
2 changes: 1 addition & 1 deletion lib/pione/model/task-worker-broker-model.rb
Expand Up @@ -46,7 +46,7 @@ def create_task_worker(tuple_space)
@task_workers << spawner.child_front
spawner.when_terminated {delete_task_worker(spawner.child_front)}
rescue Command::SpawnError => e
Log::Debug.system("Task worker broker agent failed to spawn a task worker: %e" % e.message)
Log::Debug.system("Task worker broker agent failed to spawn a task worker: %s" % e.message)
res = false
end
else
Expand Down

0 comments on commit 219b731

Please sign in to comment.