Skip to content

[BUG] Exception in RunWorkflowJob causes job deletion #101

@nuvotex-tk

Description

@nuvotex-tk

await context.Scheduler.DeleteJob(context.JobDetail.Key, cancellationToken);

If there is any exception thrown inside the RunWorkflowJob, which could be a transient database failure while loading the workflow definition, the job gets deleted.
This causes the problem that no further jobs are run and no new jobs can be scheduled.

For example, trying to publish a workflow containing a cron trigger will fail with the exception:

Quartz.JobPersistenceException: The job (Default.RunWorkflowJob) referenced by the trigger does not exist.

Currently, the only way to recover from this state is to restart the application, because jobs are recreated only by the startup job.

Maybe this is also the cause of elsa-workflows/elsa-core#7033

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions