How to create the job using Quartz.NET and set up Entity Framework Core

preview_player
Показать описание
How to create the job using Quartz.NET and set up Entity Framework Core with data feed using Bogus library. In this video we will create database from scratch, set up entity framework core, create fake data using Bogus library and create a job that will delete the data from database that are older than configurable amount of days.

If you find my videos useful you can consider to buy me a coffee 😁

Linkedin:

Github repository:

Timecodes
0:00 - Intro
0:57 - Entity Framework Core Setup
10:00 - Creating Repository
13:33 - Creating Seeder
20:26 - Creating Job
21:40 - Creating & using JobOptions
25:20 - Setting up Quartz settings
30:36 - Demo
Рекомендации по теме
Комментарии
Автор

Dude, this is super cool! I just have a small question. If I wanted to stop a Job, would I just throw some Exception? I am just wondering it is possible to do something like:
if x happens, stop the job. Make it so the job runs again in a shorter amount of time than we set up with the settings. If x happens again, stop the job completely and do not reschedule!

DaniLearnsIT
Автор

Thanks. May I know the program you are using? What program are you writing with?

yunus_bulduk
Автор

Between hangfire and Quartz which is better?

geepy
Автор

I am getting "a second operation was started on this context instance before a previous operation completed" error when I make a http request while the job is working. How can I solve that?

canyoldas
Автор

Hi, I am a bit of a beginner, I would like to know what IDE and what software architecture you are using?

jesussantos
Автор

The best option is use Azure functions with time trigger. Use webjobs and similar are not a good approach since the scalability is blocked by your whole host.

Wrustel
Автор

Awesome content, thanks for explaining!

Since you asked, something that you could consider for future videos is to edit them so that you remove the time where you are typing. It adds up to the overall video and makes it feel longer.

Of course this is very subjective and down to personal preference, but something to consider nevertheless 😊

raulalbertocanales
Автор

dobra robota!
[ENG] Grreeeat Job Remik, as always

pawekarczewski
Автор

Awesome video. One quick question where does Faker come from?

rahullore
Автор

For console application, schedule can be done via Task Schedular to invoke the process. We don't need to schedule inside the application, correct

Ben-re