We can use this collection as an alternative source to lookup imdb ids, which would be executed before name_to_imdb is called in the consumer.
8 lines
454 B
C#
8 lines
454 B
C#
namespace Metadata.Features.DownloadImdbData;
|
|
|
|
public class DownloadImdbDataJob(IMessageBus messageBus, JobConfiguration configuration) : BaseJob
|
|
{
|
|
public override bool IsScheduelable => !configuration.DownloadImdbOnce && !string.IsNullOrEmpty(configuration.DownloadImdbCronSchedule);
|
|
public override string JobName => nameof(DownloadImdbDataJob);
|
|
public override async Task Invoke() => await messageBus.SendAsync(new GetImdbDataRequest());
|
|
} |