Skip to content
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

Implement Remote Resource command 'stop_yourself' #55

Closed
natacha-beck opened this issue Apr 20, 2015 · 1 comment
Closed

Implement Remote Resource command 'stop_yourself' #55

natacha-beck opened this issue Apr 20, 2015 · 1 comment

Comments

@natacha-beck
Copy link
Contributor

A remote Rails application (such as a Bourreau)
is currently stopped by sending it a signal (SIGTERM
by default) from an external process (the ruby script
cbrain_remote_ctl when remote control is configured).
A new command 'stop_yourslf' on the control channel
could do the trick even more cleanly: the remote
resource receiving it could:

  • stop its workers
  • stop the SSH master channels for the data providers
  • stop the SSH master channels for the
  • Bourreaux (N/A for the Bourreaux themselves)
  • send itself a TERM signal using spawn_fully_independent()

Related: 690 || #54

Comments:

  • Updated by Marc Rousseau almost 5 years ago

Although cleaner, I feel this is a low-priority back-end improvement which can be administered manually (as we do currently).

@natacha-beck natacha-beck added this to the 5.0.0 milestone Apr 20, 2015
@prioux prioux modified the milestones: 5.0.0, 5.1.0 Apr 24, 2017
prioux added a commit to prioux/cbrain that referenced this issue Jun 27, 2019
1- The controls channel for Bourreau has a new 'StopYourself'
   command, which is much more efficient than the old way
   of stopping the rails app using an external script.
   Fixes aces#55 .
2- The 'ibc' utility provides access to it with the 'J' command
3- Tooltips in the interface could never be positioned
   at offset_x set to 0 because 0 is falsy in javascript. Fixed.
4- We no longer ever keep a backup of database.yml on remote sites.
5- Userfiles viewers that have conditions which crash no
   longer prevent the 'show' page from rendering; instead the
   viewer is ignored and removed from the available list.
   Fixes aces#25
6- Task forms for boutiques tasks will present list
   inputs in proper order.
   Fixes aces#830
7- Support for lists for File inputs in boutiques
   Fixes aces#831
@prioux
Copy link
Member

prioux commented Jul 2, 2019

Fixed in #832

@prioux prioux closed this as completed Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants