English 中文(简体)
How can I run an autosys job without running dependents?
原标题:

I wish to make a change to an autosys job. After I make the change:

  1. I want to test it by running it in isolation without running any dependents.
  2. After I have finished testing, I want it to be in a "normal" state; i.e. so that it (and its dependents) run automatically as usual the next day.

This seems like a pretty elementary requirement for a scheduling system.

Realistically the only way to satisfy #1 seems to be to put the dependents ON_HOLD for the duration of the test.

The trouble is that when I take them off hold at the end (for #2), they will immediately check their conditions and run - this violates requirement #1.

I could instead try satisfying condition #2 by setting them to INACTIVE, but I m told that doing so immediately sets the box such a job may be in to SUCCESS - which presumably may again trigger dependents, violating #1.

Any thoughts?

最佳回答

Set all the dependents to SUCCESS before running the job.

问题回答

If you want to run job manually, you send FORCE_START event to that job. It ignores dependencies. Job will be started and after done set to SUCCESS or FAILURE.

If for your testing you want your job to be triggered automatically, then indeed condition of this job must be met.

You may always FORCE_START job/box. That ignores dependencies for the job/box- it will just start.

If you want to test scheduled run (and ignore dependencies) putting dependencies ON_HOLD will not help you. Job that has dependencies on ON_HOLD job will wait for dependencies to be met.

Putting dependencies ON_ICE is correct way. ON_ICE dependencies are ignored. Also, putting iced job OFF_ICE will not start them immediately-they will wait for next scheduled run.





相关问题
How to use Quartz with EJB3?

I want to be able to : define different jobs and triggers. modify the expirations dates and intervals on demand pause or cancel an execution (trigger) the jobs would be ejbs or call ejbs and i would ...

How can I store and query schedule data?

I d like to allow my users to setup a schedule for their events. It could be a single day, or for convenience I d like to allow them to specify a reoccurring event (similar to an Outlook appointment). ...

Visibility schedule

I want to have a simple database table to keep track of scheduled category visibility on a site index. Basically it will tell the index to display a Christmas category between Thanksgiving and ...

Most suitable .net Timer for a scheduler

We ve identified a hotspot in our code using CCR timers. It appears that if we enqueue many thousands of timers that the code suffers terminal slowdown. The fix is to choose the soonest scheduled ...

热门标签