Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Move Jobs moves processing jobs as stopped to destination  #3222

Closed

Description

@michaelrsweet

Version: 1.3.10
CUPS.org User: rojon

When using jobs to another destination, the currently processed job will show up at the destination, but will not printed, due to it's state.
The state of these jobs is in this case IPP_JOB_STOPPED; due to a missing restart-job the job is not easily printable after moving.
Suggest the following patch for this:
--- scheduler/job.c@8704 Thu Apr 16 21:32:04 2009
+++ scheduler/job.c Fri Apr 17 13:16:14 2009
@@ -1351,6 +1351,9 @@
"Job #%d moved from %s to %s.", job->id, olddest,
p->name);

  • if (job->state_value == IPP_JOB_STOPPED)
  • cupsdRestartJob(job);

cupsdSaveJob(job);
}

which will restart the job after moving to the new destination.

Activity

  1. michaelrsweet commented on Jun 18, 2009

    @michaelrsweet
    ContributorAuthor

    CUPS.org User: mike

    Fixed in Subversion repository.

    (already fixed in trunk for 1.4...)

  2. michaelrsweet commented on Jun 18, 2009

    @michaelrsweet
    ContributorAuthor

    "str3222.patch":

    Index: scheduler/job.c

    --- scheduler/job.c (revision 8718)
    +++ scheduler/job.c (working copy)
    @@ -1331,7 +1331,12 @@
    */

    if (job->state_value == IPP_JOB_PROCESSING)

    • {
      cupsdStopJob(job, 0);
    • job->state_value = IPP_JOB_PENDING;
    • job->state->values[0].integer = IPP_JOB_PENDING;
    • }
      else
      cupsdLoadJob(job);
  3. added this to the Stable milestone on Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions