Reschedule job from a Job Filter

From a Job Filter, how can I cancel a job and put it back into the queue?

For instance:

public class ServerJobFilter : JobFilterAttribute, IClientFilter, IServerFilter 
{
    public void OnPerforming(PerformingContext context)
    {
        if (serverName != currentServerName)
        {
            // TODO: Reschedule the job
        } else {
            // All good, continue with the job
        } 
    }
    // ...
}
1 Like