Skip to content

Commit

Permalink
Merge pull request #5971 from AtariDreams/ipp
Browse files Browse the repository at this point in the history
Change job state to IPP_JOB_HELD when job is restarted with appropriate job-held-until attribute.
  • Loading branch information
michaelrsweet committed Oct 1, 2021
2 parents 0067573 + 34db020 commit a350065
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scheduler/ipp.c
Expand Up @@ -9372,11 +9372,10 @@ restart_job(cupsd_client_t *con, /* I - Client connection */
cupsdLogJob(job, CUPSD_LOG_DEBUG,
"Restarted by \"%s\" with job-hold-until=%s.",
username, attr->values[0].string.text);
cupsdSetJobHoldUntil(job, attr->values[0].string.text, 0);

cupsdAddEvent(CUPSD_EVENT_JOB_CONFIG_CHANGED | CUPSD_EVENT_JOB_STATE,
NULL, job, "Job restarted by user with job-hold-until=%s",
attr->values[0].string.text);
cupsdSetJobHoldUntil(job, attr->values[0].string.text, 1);
cupsdSetJobState(job, IPP_JOB_HELD, CUPSD_JOB_DEFAULT,
"Job restarted by user with job-hold-until=%s",
attr->values[0].string.text);
}
else
{
Expand Down

0 comments on commit a350065

Please sign in to comment.