Originally created by @jalberto on GitHub (Apr 10, 2015).
When a job is removed from crontab.rb, it must be "marked" as disable or similar so it doesn't run next time
Originally created by @jalberto on GitHub (Apr 10, 2015).
When a job is removed from crontab.rb, it must be "marked" as disable or similar so it doesn't run next time
Probably will be useful to add a flag to each job, so job can be disabled without removing, eg:
Crono.perform(MyWorker).every 1.week, on: :monday, at: '13:00', state: :disabled
with a sensible default to :active
Then on crono start (or on demand) every job marked to remove can be deleted
@jalberto commented on GitHub (Apr 10, 2015):
great news :)
Probably will be useful to add a flag to each job, so job can be disabled without removing, eg:
```
Crono.perform(MyWorker).every 1.week, on: :monday, at: '13:00', state: :disabled
```
with a sensible default to :active
Then on crono start (or on demand) every job marked to remove can be deleted
I've looked through the documentation and can not find a way to kill this process. I ran bundle exec crono -d. Is there a way to kill this process? Any help would be greatly appreciated. Thanks!
@carolyn-idi commented on GitHub (Dec 1, 2015):
I've looked through the documentation and can not find a way to kill this process. I ran `bundle exec crono -d`. Is there a way to kill this process? Any help would be greatly appreciated. Thanks!
@ceospfx you could kill the process using the kill command and pid file:
kill `cat tmp/pids/crono.pid`
@plashchynski commented on GitHub (Jun 26, 2016):
@ceospfx you could kill the process using the `kill` command and pid file:
```
kill `cat tmp/pids/crono.pid`
```
Until this feature is implemented the manual way to remove one of the old jobs that still shows up in the web ui. Just grab the name/title of the job and hop in a rails console and run:
Crono::CronoJob.where(job_id: "Perform MyImportantJob every 300 seconds").first.destroy
@arronmabrey commented on GitHub (May 1, 2018):
Until this feature is implemented the manual way to remove one of the old jobs that still shows up in the web ui. Just grab the name/title of the job and hop in a rails console and run:
```
Crono::CronoJob.where(job_id: "Perform MyImportantJob every 300 seconds").first.destroy
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @jalberto on GitHub (Apr 10, 2015).
When a job is removed from crontab.rb, it must be "marked" as disable or similar so it doesn't run next time
@plashchynski commented on GitHub (Apr 10, 2015):
Fair enough, we will implement it in the next release.
@jalberto commented on GitHub (Apr 10, 2015):
great news :)
Probably will be useful to add a flag to each job, so job can be disabled without removing, eg:
with a sensible default to :active
Then on crono start (or on demand) every job marked to remove can be deleted
@carolyn-idi commented on GitHub (Dec 1, 2015):
I've looked through the documentation and can not find a way to kill this process. I ran
bundle exec crono -d. Is there a way to kill this process? Any help would be greatly appreciated. Thanks!@plashchynski commented on GitHub (Jun 26, 2016):
@ceospfx you could kill the process using the
killcommand and pid file:@arronmabrey commented on GitHub (May 1, 2018):
Until this feature is implemented the manual way to remove one of the old jobs that still shows up in the web ui. Just grab the name/title of the job and hop in a rails console and run: