Skip to content

Background Worker without active session #4281

Closed

Description

@itg-assistant

Manfred Rudolph asked 2023-07-27 13:49:08 UTC

is it possible to start a background worker (BW) without active session ?
I would like to start a complex evaluation on the server at night when usually no users are active. In the examples for the BW, there must be at least one active user for the BW to start."

Activity

  1. itg-assistant commented on Jun 15, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2023-07-28 12:01:58 UTC

    Hi Manfred,

    usually, Web servers don’t do anything without a browser request.
    IIS has a way to preload an assembly on startup and possibly invoke a method to register a module.
    It´s maybe possible to start a thread there. But you´d have to look that up and experiment on your own.
    Unfortunatly, it’s outside of Wisej.NET scope.

    Hope that helps anyways.

    Best regards
    Frank

  2. itg-assistant commented on Jun 15, 2026

    @itg-assistant
    Author

    Kizaemon Date answered 2023-08-01 03:08:27 UTC

    For background processing I am using successfully the Windows Task Scheduler to run a separate stand-alone process (command line exe file).

    That process is polling in a database queue and does as requested.

    This has also an advantage of decoupling the concerns, the memory management and the releases.

    From withing WiseJ the Task Scheduler can be easily managed with a NuGet Extension (https://github.com/dahall/taskscheduler) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions