Page 1 of 2

Job Scheduling is not functioning.

Posted: Wed Jan 13, 2010 6:13 am
by jayeeta_aec
Hi,

What can be the reason for scheduling being not in action for a job in Datastage Server edition 7.5.1A ? (Operating system is UNIX). Can it be realted to Operating system, though the scheduling is done from Datastage Director?`

Thanks in advance.

SR

Posted: Wed Jan 13, 2010 7:18 am
by chulett
What exactly do you mean by 'not functioning' or 'not in action'? :?

Posted: Wed Jan 13, 2010 9:10 am
by kandyshandy
Do you have permission to schedule a job at the first place? Did you check the crontab @ UNIX level, after scheduling the job from director?

Posted: Wed Jan 13, 2010 9:35 am
by jayeeta_aec
chulett wrote:What exactly do you mean by 'not functioning' or 'not in action'? :? ...
Though it was scheduled, the job isn't being triggered at the scheduled time. So we have to trigger it manually.

Posted: Wed Jan 13, 2010 9:40 am
by chulett
Was this a recurring schedule or a one-time one? The former uses 'cron' while the latter uses 'at'. Can you post the appropriate entry from the scheduler itself, cron or at? Meaning nothing from Director but rather from your O/S.

Posted: Wed Jan 13, 2010 10:03 am
by jayeeta_aec
chulett wrote:Was this a recurring schedule or a one-time one? The former uses 'cron' while the latter uses 'at'. Can you post the appropriate entry from the scheduler itself, cron or at? Meaning nothing from Direc ...
As the job is supposed to run every day at a specific time, it should be using 'cron', I guess. I checked with UNIX. Cronjob is fine as far as I can make out. And for your information, this issue was faced just yesterday, which was not in place before that.
Thanks for ur constant help Creig.

Posted: Wed Jan 13, 2010 10:06 am
by kandyshandy
Did you overwrite the existing scheduled job yesterday (during some enhancements migration)? If yes, can you delete the cron entry and reschedule?

Posted: Wed Jan 13, 2010 10:20 am
by jayeeta_aec
kandyshandy wrote:Did you overwrite the existing scheduled job yesterday (during some enhancements migration)? If yes, can you delete the cron entry and reschedule?
We didn't overwrite the scheduled job. We didn't even reschedule it to stop for an opinion. And won't the crontab file be overwritten if we reschedule the job, say in a different time?

Posted: Wed Jan 13, 2010 10:23 am
by chulett
It couldn't hurt to Unschedule the job and then Add to Schedule again. If there's any doubt about what it did, do a "crontab -l" from the command line as the scheduling user and post it here.

Posted: Wed Jan 13, 2010 10:41 am
by kandyshandy
[quoteWe didn't overwrite the scheduled job. We didn't even reschedule it to stop for an opinion. And won't the crontab file be overwritten if we reschedule the job, say in a different time?[/quote]

Yes and No. If you reschedule a job, then cron tab entry is taken care. But if you accidentally overwrite an existing scheduled job, it does not use the existing entry in crontab. In that case, we need to delete the cron entry and schedule the job again. I guess, the link is broken or something happens internally when the job is overwritten.

Again, this is specific to places where i have worked... or may be with release 7.x

Posted: Wed Jan 13, 2010 11:24 am
by jayeeta_aec
kandyshandy wrote:[quoteWe didn't overwrite the scheduled job. We didn't even reschedule it to stop for an opinion. And won't the crontab file be overwritten if we reschedule the job, say in a different time?
Yes and No. If you reschedule a job, then cron tab entry is taken care. But if you accidentally overwrite an existing scheduled job, it does not use the existing entry in crontab. In that case, we need to delete the cron entry and schedule the job again. I guess, the link is broken or something happens internally when the job is overwritten.

Again, this is specific to places where i have worked... or may be with release 7.x[/quote]

If I undersatnd properly, what u meant with 'the job is overwritten' is recompiling the job after any alteration. Am i correct?

Posted: Wed Jan 13, 2010 11:51 am
by jayeeta_aec
chulett wrote:It couldn't hurt to Unschedule the job and then Add to Schedule again. If there's any doubt about what it did, do a "crontab -l" from the command line as the scheduling user and post it here. ...
Creig i have done Unschedule-Add to schedule on that job. Let's see what happens. I will let u know. In the mean time, can u plz tell me what the difference b/w 'Rescheduling' and 'Unschedule-Add to schedule' a job is.

Posted: Wed Jan 13, 2010 12:13 pm
by kandyshandy
"overwritten" - Assume a job X in production environment which is scheduled. Meanwhile, business requested some enhancements to job X, which will be developed in DEV environment, tested and then migrated to other environments including production. Migration to production environment can be done in 2 ways. One is to delete job X in production environment and then import the enhanced job X from DEV. Other way is to OVERWRITE the existing job X while importing the enhanced job. Got it?

Posted: Wed Jan 13, 2010 12:23 pm
by jayeeta_aec
kandyshandy wrote:"overwritten" - Assume a job X in production environment which is scheduled. Meanwhile, business requested some enhancements to job X, which will be developed in DEV environment, tested and then migrated to other environments including production. Migration to production environment can be done in 2 ways. One is to delete job X in production environment and then import the enhanced job X from DEV. Other way is to OVERWRITE the existing job X while importing the enhanced job. Got it?
Thnx kandy for ur patience.. :) ...i got it.. but u invoked another query in my mind. In either way of this migration process, crontab entry is going to be affected. Isn't it? Or do u mean it would get affected only with the "OVERWRITE" process, u mentioned.

Posted: Wed Jan 13, 2010 2:07 pm
by kandyshandy
May be... But i have seen issues only when we did overwrite :)