Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

shutdown/execute timertask will generate one more thread run the same task #662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
xchen0123 opened this issue Jun 8, 2017 · 1 comment
Labels
bug A bug in the library or documentation. looking-for-contributor We are looking for a contributor to help with this issue. medium-priority Should be done soon.

Comments

@xchen0123
Copy link

xchen0123 commented Jun 8, 2017

  • Operating system: linux
  • concurrent-ruby version: 1.0.5
  • concurrent-ruby-ext installed: yes
  • concurrent-ruby-edge used: no

If each time i shutdown and execute the timertask as example shown, there will be one more thread running the duplicated task.
example:

task = Concurrent::TimerTask.new(execution_interval: 3, timeout_interval: 1) { p Time.now; p rand(100)}
task.execute

sleep(3)

3.times do
  task.shutdown
  task.execute
end

sleep(10)
@pitr-ch
Copy link
Member

pitr-ch commented Jul 23, 2017

Thanks for reporting, would you have time to look for a solution?

@pitr-ch pitr-ch added this to the 1.1.1 milestone Jul 23, 2017
@pitr-ch pitr-ch added bug A bug in the library or documentation. looking-for-contributor labels Jul 23, 2017
@pitr-ch pitr-ch modified the milestones: 1.1.1, 1.1.0 Feb 21, 2018
@pitr-ch pitr-ch added the minor label Jun 18, 2018
@pitr-ch pitr-ch added medium-priority Should be done soon. looking-for-contributor We are looking for a contributor to help with this issue. and removed looking-for-contributor labels Jun 29, 2018
@pitr-ch pitr-ch removed this from the 1.1.0 milestone Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in the library or documentation. looking-for-contributor We are looking for a contributor to help with this issue. medium-priority Should be done soon.
Projects
None yet
Development

No branches or pull requests

2 participants