work on queue

This commit is contained in:
Bojan Kucera 2025-06-08 18:56:52 -04:00
parent bf2fa003b9
commit 9b8a7bdd4b
6 changed files with 488 additions and 420 deletions

View file

@ -166,29 +166,29 @@ export const quotemediaProvider: ProviderConfig = {
},
scheduledJobs: [
{
type: 'quotemedia-premium-refresh',
operation: 'batch-quotes',
payload: { symbols: ['AAPL', 'GOOGL', 'MSFT'] },
cronPattern: '*/2 * * * *', // Every 2 minutes
priority: 7,
description: 'Refresh premium quotes with detailed market data'
},
{
type: 'quotemedia-options-update',
operation: 'options-chain',
payload: { symbol: 'SPY' },
cronPattern: '*/10 * * * *', // Every 10 minutes
priority: 5,
description: 'Update options chain data for SPY ETF'
},
{
type: 'quotemedia-profiles',
operation: 'company-profile',
payload: { symbol: 'AAPL' },
cronPattern: '0 9 * * 1-5', // Weekdays at 9 AM
priority: 3,
description: 'Update company profile data'
}
// {
// type: 'quotemedia-premium-refresh',
// operation: 'batch-quotes',
// payload: { symbols: ['AAPL', 'GOOGL', 'MSFT'] },
// cronPattern: '*/2 * * * *', // Every 2 minutes
// priority: 7,
// description: 'Refresh premium quotes with detailed market data'
// },
// {
// type: 'quotemedia-options-update',
// operation: 'options-chain',
// payload: { symbol: 'SPY' },
// cronPattern: '*/10 * * * *', // Every 10 minutes
// priority: 5,
// description: 'Update options chain data for SPY ETF'
// },
// {
// type: 'quotemedia-profiles',
// operation: 'company-profile',
// payload: { symbol: 'AAPL' },
// cronPattern: '0 9 * * 1-5', // Weekdays at 9 AM
// priority: 3,
// description: 'Update company profile data'
// }
]
};