Project

General

Profile

Actions

Question #3370

closed

Job scheduler

Added by Dennis Cabooter about 11 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
N/A
Assignee:
-
Category:
Techniques
Target version:
-
Regression:

Description

The Job Scheduler technique doesn't seem to have the possibility to run a job every five minutes. Is it possible, and if so, what is the best practice to do this?

Kind regards

Actions #1

Updated by Nicolas CHARLES about 11 years ago

Hi Dennis,

The Job Scheduler technique exists to execute a command only once a day. There are currently no way to execute a command every five minutes, but maybe the technique in developpement here http://www.rudder-project.org/redmine/issues/3214 would help you.

Actions #2

Updated by Nicolas CHARLES about 11 years ago

What kind of job would you like to run ? Would you need as well them to be run in a specific time interval ?

Actions #3

Updated by Dennis Cabooter about 11 years ago

We execute scripts every five minutes to feed our monitoring system. I could solve it by deploying /etc/crontab as a file, but it would be nice to schedule this within Rudder.

Actions #4

Updated by Nicolas CHARLES about 11 years ago

  • Assignee set to Jonathan CLARKE

Ho, so I think we'd need a specific technique for that. What do you think Jon ?

Actions #5

Updated by Nicolas CHARLES about 11 years ago

  • Project changed from Rudder to 24
Actions #6

Updated by Nicolas PERRON about 11 years ago

Nicolas CHARLES wrote:

Ho, so I think we'd need a specific technique for that. What do you think Jon ?

There is already a Technique to manage crontab: Technique Cron daemon configuration.

Actions #7

Updated by Jonathan CLARKE about 11 years ago

  • Category set to Techniques
  • Status changed from New to Discussion
  • Assignee changed from Jonathan CLARKE to Dennis Cabooter

As I understand it, this would be a typical use case for #3214: run a command on every CFEngine run.

Alternatively, as Nicolas Perron suggested above, you could use the crontab Technique to add a crontab for this on the machines.

Dennis, what do you reckon about these two approaches?

Actions #8

Updated by Dennis Cabooter about 11 years ago

Sorry, I wasn't aware of the crontab technique. Maybe it's not in the right place? Also, why is there a job scheduler and a crontab technique, while they could be merged?

Actions #9

Updated by Nicolas CHARLES about 11 years ago

Dennis Cabooter wrote:

Sorry, I wasn't aware of the crontab technique. Maybe it's not in the right place? Also, why is there a job scheduler and a crontab technique, while they could be merged?

There is a big difference between both approach :
  1. the crontab technique edits the crontab, and the cron is responsible for running the command; so Rudder doesn't know anything about it
  2. the jobScheduler technique runs the command, and can extract return code from it, to have reports on the execution of the command.

So they don't have the same purpose...
I guess #3214 is the one you'll need

Actions #10

Updated by Benoît PECCATTE about 9 years ago

  • Project changed from 24 to Rudder
  • Category changed from Techniques to Techniques
Actions #11

Updated by Benoît PECCATTE almost 9 years ago

  • Assignee deleted (Dennis Cabooter)
Actions #12

Updated by Benoît PECCATTE almost 9 years ago

  • Status changed from Discussion to Resolved

I think we answered your question, so I'm closing it.
Feel free to reopen if it's not the case.

Actions

Also available in: Atom PDF