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

jobs cleanup #21

Open
jalberto opened this issue Apr 10, 2015 · 5 comments
Open

jobs cleanup #21

jalberto opened this issue Apr 10, 2015 · 5 comments

Comments

@jalberto
Copy link

When a job is removed from crontab.rb, it must be "marked" as disable or similar so it doesn't run next time

@plashchynski
Copy link
Owner

Fair enough, we will implement it in the next release.

@jalberto
Copy link
Author

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

@carolyn-idi
Copy link

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
Copy link
Owner

@ceospfx you could kill the process using the kill command and pid file:

kill `cat tmp/pids/crono.pid`

@arronmabrey
Copy link

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

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

4 participants