{"id":801,"date":"2009-10-16T13:02:36","date_gmt":"2009-10-16T12:02:36","guid":{"rendered":"http:\/\/cyberelk.net\/tim\/?p=801"},"modified":"2014-05-20T09:07:28","modified_gmt":"2014-05-20T08:07:28","slug":"cups-cancelled-jobs-showing-up-in-the-queue","status":"publish","type":"post","link":"https:\/\/cyberelk.net\/tim\/2009\/10\/16\/cups-cancelled-jobs-showing-up-in-the-queue\/","title":{"rendered":"CUPS cancelled jobs showing up in the queue"},"content":{"rendered":"<p>The newest stable branch of CUPS, 1.4, has a different job cancellation behaviour (hey, two words in a row spelt differently in American English!) than 1.3 did.\u00a0 If you have cancelled a job but it still appears in the job queue, this might explain why.<\/p>\n<p><!--more--><\/p>\n<p>The <tt>lpstat -o<\/tt> command shows jobs that are in the CUPS scheduler&#8217;s &#8216;active jobs<br \/>\nlist&#8217;.\u00a0 The CUPS web interface also uses this list when displaying the job queue; so does the system-config-printer job viewer.<\/p>\n<p>In CUPS 1.3 and earlier you should never see cancelled jobs in queue.<\/p>\n<p>In CUPS 1.4 the only time you should see cancelled jobs in the queue is when those jobs have been cancelled but one or more filters or backends have not yet finished.<\/p>\n<p>When a job is cancelled, each process in the job pipeline is sent a SIGTERM signal.\u00a0 If there is no signal handler, this kills the process there and then.<\/p>\n<p>However, the CUPS backends ignore that signal and just wait for the filters to finish sending data.\u00a0 The reason for this is that some devices may require sort of reset code to be sent in order to be back in their &#8216;normal&#8217; state.<\/p>\n<p>In contrast to CUPS 1.3, in 1.4 a job is not immediately removed from the active jobs list at the time it is cancelled.\u00a0 This is in order to implement a job kill delay: after the configurable &#8216;JobKillDelay&#8217; (default is 300 seconds), any remaining filters or backends associated with cancelled jobs on the active jobs list are sent SIGKILL, and the job is removed from the active jobs list.<\/p>\n<p>CUPS 1.4 is available in Fedora 11.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The newest stable branch of CUPS, 1.4, has a different job cancellation behaviour (hey, two words in a row spelt differently in American English!) than 1.3 did.\u00a0 If you have cancelled a job but it still appears in the job queue, this might explain why.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3],"tags":[33,27,96],"class_list":["post-801","post","type-post","status-publish","format-standard","hentry","category-software","tag-cups","tag-fedora","tag-software"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CUPS cancelled jobs showing up in the queue - PRINT HEAD<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cyberelk.net\/tim\/2009\/10\/16\/cups-cancelled-jobs-showing-up-in-the-queue\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CUPS cancelled jobs showing up in the queue - PRINT HEAD\" \/>\n<meta property=\"og:description\" content=\"The newest stable branch of CUPS, 1.4, has a different job cancellation behaviour (hey, two words in a row spelt differently in American English!) than 1.3 did.\u00a0 If you have cancelled a job but it still appears in the job queue, this might explain why.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cyberelk.net\/tim\/2009\/10\/16\/cups-cancelled-jobs-showing-up-in-the-queue\/\" \/>\n<meta property=\"og:site_name\" content=\"PRINT HEAD\" \/>\n<meta property=\"article:published_time\" content=\"2009-10-16T12:02:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-05-20T08:07:28+00:00\" \/>\n<meta name=\"author\" content=\"Tim Waugh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tim Waugh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2009\\\/10\\\/16\\\/cups-cancelled-jobs-showing-up-in-the-queue\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2009\\\/10\\\/16\\\/cups-cancelled-jobs-showing-up-in-the-queue\\\/\"},\"author\":{\"name\":\"Tim Waugh\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\"},\"headline\":\"CUPS cancelled jobs showing up in the queue\",\"datePublished\":\"2009-10-16T12:02:36+00:00\",\"dateModified\":\"2014-05-20T08:07:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2009\\\/10\\\/16\\\/cups-cancelled-jobs-showing-up-in-the-queue\\\/\"},\"wordCount\":271,\"publisher\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\"},\"keywords\":[\"cups\",\"fedora\",\"Software\"],\"articleSection\":[\"Software\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2009\\\/10\\\/16\\\/cups-cancelled-jobs-showing-up-in-the-queue\\\/\",\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2009\\\/10\\\/16\\\/cups-cancelled-jobs-showing-up-in-the-queue\\\/\",\"name\":\"CUPS cancelled jobs showing up in the queue - PRINT HEAD\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#website\"},\"datePublished\":\"2009-10-16T12:02:36+00:00\",\"dateModified\":\"2014-05-20T08:07:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2009\\\/10\\\/16\\\/cups-cancelled-jobs-showing-up-in-the-queue\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2009\\\/10\\\/16\\\/cups-cancelled-jobs-showing-up-in-the-queue\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/2009\\\/10\\\/16\\\/cups-cancelled-jobs-showing-up-in-the-queue\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CUPS cancelled jobs showing up in the queue\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#website\",\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/\",\"name\":\"PRINT HEAD\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/#\\\/schema\\\/person\\\/23b749f30a67f1b1c6af17024fc94bf6\",\"name\":\"Tim Waugh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\",\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\",\"contentUrl\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\",\"width\":731,\"height\":140,\"caption\":\"Tim Waugh\"},\"logo\":{\"@id\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/printhead.png\"},\"sameAs\":[\"http:\\\/\\\/cyberelk.net\\\/tim\"],\"url\":\"https:\\\/\\\/cyberelk.net\\\/tim\\\/author\\\/twaugh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CUPS cancelled jobs showing up in the queue - PRINT HEAD","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cyberelk.net\/tim\/2009\/10\/16\/cups-cancelled-jobs-showing-up-in-the-queue\/","og_locale":"en_GB","og_type":"article","og_title":"CUPS cancelled jobs showing up in the queue - PRINT HEAD","og_description":"The newest stable branch of CUPS, 1.4, has a different job cancellation behaviour (hey, two words in a row spelt differently in American English!) than 1.3 did.\u00a0 If you have cancelled a job but it still appears in the job queue, this might explain why.","og_url":"https:\/\/cyberelk.net\/tim\/2009\/10\/16\/cups-cancelled-jobs-showing-up-in-the-queue\/","og_site_name":"PRINT HEAD","article_published_time":"2009-10-16T12:02:36+00:00","article_modified_time":"2014-05-20T08:07:28+00:00","author":"Tim Waugh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tim Waugh","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cyberelk.net\/tim\/2009\/10\/16\/cups-cancelled-jobs-showing-up-in-the-queue\/#article","isPartOf":{"@id":"https:\/\/cyberelk.net\/tim\/2009\/10\/16\/cups-cancelled-jobs-showing-up-in-the-queue\/"},"author":{"name":"Tim Waugh","@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6"},"headline":"CUPS cancelled jobs showing up in the queue","datePublished":"2009-10-16T12:02:36+00:00","dateModified":"2014-05-20T08:07:28+00:00","mainEntityOfPage":{"@id":"https:\/\/cyberelk.net\/tim\/2009\/10\/16\/cups-cancelled-jobs-showing-up-in-the-queue\/"},"wordCount":271,"publisher":{"@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6"},"keywords":["cups","fedora","Software"],"articleSection":["Software"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/cyberelk.net\/tim\/2009\/10\/16\/cups-cancelled-jobs-showing-up-in-the-queue\/","url":"https:\/\/cyberelk.net\/tim\/2009\/10\/16\/cups-cancelled-jobs-showing-up-in-the-queue\/","name":"CUPS cancelled jobs showing up in the queue - PRINT HEAD","isPartOf":{"@id":"https:\/\/cyberelk.net\/tim\/#website"},"datePublished":"2009-10-16T12:02:36+00:00","dateModified":"2014-05-20T08:07:28+00:00","breadcrumb":{"@id":"https:\/\/cyberelk.net\/tim\/2009\/10\/16\/cups-cancelled-jobs-showing-up-in-the-queue\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cyberelk.net\/tim\/2009\/10\/16\/cups-cancelled-jobs-showing-up-in-the-queue\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cyberelk.net\/tim\/2009\/10\/16\/cups-cancelled-jobs-showing-up-in-the-queue\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cyberelk.net\/tim\/"},{"@type":"ListItem","position":2,"name":"CUPS cancelled jobs showing up in the queue"}]},{"@type":"WebSite","@id":"https:\/\/cyberelk.net\/tim\/#website","url":"https:\/\/cyberelk.net\/tim\/","name":"PRINT HEAD","description":"","publisher":{"@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cyberelk.net\/tim\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/cyberelk.net\/tim\/#\/schema\/person\/23b749f30a67f1b1c6af17024fc94bf6","name":"Tim Waugh","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png","url":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png","contentUrl":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png","width":731,"height":140,"caption":"Tim Waugh"},"logo":{"@id":"https:\/\/cyberelk.net\/tim\/wp-content\/uploads\/2023\/01\/printhead.png"},"sameAs":["http:\/\/cyberelk.net\/tim"],"url":"https:\/\/cyberelk.net\/tim\/author\/twaugh\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pnnS2-cV","_links":{"self":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts\/801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/comments?post=801"}],"version-history":[{"count":3,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts\/801\/revisions"}],"predecessor-version":[{"id":1046,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/posts\/801\/revisions\/1046"}],"wp:attachment":[{"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/media?parent=801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/categories?post=801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cyberelk.net\/tim\/wp-json\/wp\/v2\/tags?post=801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}