# BackgroundJob.ContinueJobWith for recurring job?

**URL:** <https://discuss.hangfire.io/t/backgroundjob-continuejobwith-for-recurring-job/8368>\
**Category:** question\
**Tags:** recurring, aspnetcore\
**Created:** [April 10, 2021, 7:55am UTC](https://discuss.hangfire.io/t/backgroundjob-continuejobwith-for-recurring-job/8368 "2021-04-10T07:55:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngaisteve1](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/ngaisteve1/32/2514_2.png) [@ngaisteve1](https://discuss.hangfire.io/u/ngaisteve1)\
**Post date:** [April 10, 2021, 7:55am UTC](https://discuss.hangfire.io/t/backgroundjob-continuejobwith-for-recurring-job/8368/1 "2021-04-10T07:55:23Z")

</div>

I have this api endpoint method which uses `Hangfire` . How do I make sure that `PreIngestion()` is completed first before `IngestA()` and `IngestB()` could be executed?

```auto
[HttpGet]
[Route("IngestFiles")]
public IActionResult IngestFiles(string cronExpression = "0")
{
     RecurringJob.AddOrUpdate<IIngestService>(x => x.PreIngestion(), cronExpression, TimeZoneInfo.Local);

     RecurringJob.AddOrUpdate<IIngestService>(x => x.IngestA(), cronExpression, TimeZoneInfo.Local);
     RecurringJob.AddOrUpdate<IIngestService>(x => x.IngestB(), cronExpression, TimeZoneInfo.Local);

     return Ok();
}

```
