Skip to content

Commit 470f4cc

Browse files
committed
Update celery.rb
1 parent e860aac commit 470f4cc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

providers/celery.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
if !new_resource.restart_command
3030
r = new_resource
3131
new_resource.restart_command do
32-
run_context.resource_collection.find(:supervisor_service => "#{r.application.name}-celeryd").run_action(:restart) if new_resource.celeryd
33-
run_context.resource_collection.find(:supervisor_service => "#{r.application.name}-celerybeat").run_action(:restart) if new_resource.celerybeat
34-
run_context.resource_collection.find(:supervisor_service => "#{r.application.name}-celerycam").run_action(:restart) if new_resource.celerycam
32+
run_context.resource_collection.find(:supervisor_service => "#{r.application.name}-celeryd").run_action(:restart) if r.celeryd
33+
run_context.resource_collection.find(:supervisor_service => "#{r.application.name}-celerybeat").run_action(:restart) if r.celerybeat
34+
run_context.resource_collection.find(:supervisor_service => "#{r.application.name}-celerycam").run_action(:restart) if r.celerycam
3535
end
3636
end
3737

0 commit comments

Comments
 (0)