Base solution for your next web application
Open Closed

Background job continues to run after DeleteAsync #7946


User avatar
0
timmackey created

bool deleted = await _backgroundJobManager.DeleteAsync(backgroundJobId);

DeleteAsync returns true. The job is removed from AbpBackgroundJob table. Yet the background job continues to run Why? How can I stop the execution of a background job?


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Yet the background job continues to run Why?

    Will this deleted job be executed once or continue to execute regularly?

  • User Avatar
    0
    timmackey created

    The job runs to completion (several minutes) and completes normally.

  • User Avatar
    0
    maliming created
    Support Team

    The built-in Background Job function is relatively simple. If the job has already started, you can't stop it. You can consider using Hangfire.