Very frequently, a data warehouse sources its data from another operational data store (ODS), which is usually a database in which data from various other production databases/data sources are replicated to or pushed to on a regular basis (but usually not real time data syncing).
Suppose you have a nightly data warehouse ETL job that processes yesterday's data. You have a dimension table which sources data from 2 tables that originally came from 2 different databases. The 2 databases are replicated to your company's ODS, but for database A, the data is pushed to the ODS around 7 pm, while the other is pushed to the ODS around the same time but could be a couple of minutes behind. There is also a very likely chance that replication to the ODS broke down. You want to call your datawarehouse ETL job only if both tables have the complete data for yesterday's date.
In order to solve this issue, I built a datastage sequence with a retry attempt built in. The generic sequence flow is this. Create a loop that takes in the number of retries as a variable. Then inside the loop, you call a job that polls the ODS to see if your data is ready. Perhaps you can write a sql to check the last row_create_data in your source tables, or do a rowcount check and write the output to a textfile. Every environment is different so you'll have to come up with your own strategy as regards to what signals your data is ready. You then create a job to read the textfile output of the job above, and use a Nested Condition stage to decide if it meets your data completion criteria. If so, exit out of the loop and move on to your main ETL job, if not, stay inside the loop and call a simple routine to sleep for a certain amount of time (also use a variable), then continue the loop.
To create the sleep routine:
Create a Server Routine, select Transform Function. It should take in 1 argument, which is the number of seconds it should sleep for. In code, just type:
vSeconds = sleep_seconds
vArray = 0
sleep vSeconds
Ans=vArray
Then inside your loop, use a Routine Activity stage, and call the above routine. And pass in a job parameter for the sleep_seconds as the argument to this routine.
Below is the image of how the sequence should be designed:
What is your loop definition ??
ReplyDeleteAssume that your sequence is running overnight? What is the resource usage of this sequence when it is continuously polling for the data? Is it going to block any compute nodes for this process?
ReplyDeleteEskişehir
ReplyDeleteAdana
Sivas
Kayseri
Samsun
VSDH
Afyon
ReplyDeleteAntalya
Erzurum
Mersin
izmir
28CB5
görüntülüshow
ReplyDeleteücretli show
R0U00L
istanbul evden eve nakliyat
ReplyDeletekonya evden eve nakliyat
düzce evden eve nakliyat
bursa evden eve nakliyat
diyarbakır evden eve nakliyat
UİJZ41
5E806
ReplyDeleteDenizli Parça Eşya Taşıma
Bartın Evden Eve Nakliyat
Kars Parça Eşya Taşıma
Erzincan Evden Eve Nakliyat
Isparta Parça Eşya Taşıma
07925
ReplyDeleteBatman Evden Eve Nakliyat
Eskişehir Evden Eve Nakliyat
Bilecik Lojistik
Urfa Parça Eşya Taşıma
Karabük Lojistik
E9AB2
ReplyDeleteBalıkesir Evden Eve Nakliyat
Erzurum Lojistik
Bingöl Parça Eşya Taşıma
Adana Lojistik
Kilis Parça Eşya Taşıma
E998B
ReplyDeleteKayseri Evden Eve Nakliyat
Nevşehir Parça Eşya Taşıma
Niğde Lojistik
Giresun Evden Eve Nakliyat
Çankırı Parça Eşya Taşıma
0087A
ReplyDeleteBingöl Lojistik
Giresun Lojistik
Van Evden Eve Nakliyat
Manisa Evden Eve Nakliyat
Bitlis Evden Eve Nakliyat
0575D
ReplyDeleterastgele sohbet uygulaması
Kayseri Sohbet Siteleri
Ağrı Rastgele Görüntülü Sohbet Uygulaması
görüntülü sohbet ücretsiz
izmir ücretsiz sohbet sitesi
Sinop Yabancı Canlı Sohbet
Kırşehir Rastgele Görüntülü Sohbet
Osmaniye Canlı Görüntülü Sohbet Uygulamaları
Aksaray Mobil Sohbet Odaları
5E542
ReplyDeleteTiktok Takipçi Satın Al
Instagram Beğeni Satın Al
Kripto Para Nasıl Kazılır
Youtube Beğeni Satın Al
Parasız Görüntülü Sohbet
Bitcoin Çıkarma Siteleri
Btcturk Borsası Güvenilir mi
Telegram Görüntüleme Satın Al
Meta Coin Hangi Borsada
793E0
ReplyDeleteBinance Referans Kodu
Bitcoin Üretme
Kripto Para Kazma Siteleri
Kwai Takipçi Hilesi
Sohbet
Lovely Coin Hangi Borsada
Binance Nasıl Üye Olunur
Bitcoin Nasıl Alınır
Binance Borsası Güvenilir mi
D866D
ReplyDeleteOmlira Coin Hangi Borsada
Facebook Takipçi Hilesi
Referans Kimliği Nedir
Bulut Madenciliği Nedir
Kripto Para Kazma Siteleri
Bitcoin Nedir
Nexa Coin Hangi Borsada
Soundcloud Dinlenme Satın Al
Bitcoin Nasıl Üretilir
A8CD3
ReplyDeleteBinance Hesap Açma
Binance Nasıl Oynanır
Binance Referans Kodu
Twitter Beğeni Hilesi
Görüntülü Sohbet
Mefa Coin Hangi Borsada
Baby Doge Coin Hangi Borsada
Keep Coin Hangi Borsada
Youtube İzlenme Hilesi
663B8E75B5
ReplyDeleteskype show
شركة تسليك مجاري بالاحساء 4sfWiREfai
ReplyDelete