+_PENDING_OPT = \
+ cli_option("--pending", default=None,
+ action="store_const", dest="status_filter",
+ const=constants.JOBS_PENDING,
+ help="Select jobs pending execution or being cancelled")
+
+_RUNNING_OPT = \
+ cli_option("--running", default=None,
+ action="store_const", dest="status_filter",
+ const=frozenset([
+ constants.JOB_STATUS_RUNNING,
+ ]),
+ help="Show jobs currently running only")
+
+_ERROR_OPT = \
+ cli_option("--error", default=None,
+ action="store_const", dest="status_filter",
+ const=frozenset([
+ constants.JOB_STATUS_ERROR,
+ ]),
+ help="Show failed jobs only")
+
+_FINISHED_OPT = \
+ cli_option("--finished", default=None,
+ action="store_const", dest="status_filter",
+ const=constants.JOBS_FINALIZED,
+ help="Show finished jobs only")
+
+_ARCHIVED_OPT = \
+ cli_option("--archived", default=False,
+ action="store_true", dest="archived",
+ help="Include archived jobs in list (slow and expensive)")
+
+_QUEUED_OPT = \
+ cli_option("--queued", default=None,
+ action="store_const", dest="status_filter",
+ const=frozenset([
+ constants.JOB_STATUS_QUEUED,
+ ]),
+ help="Select queued jobs only")
+
+_WAITING_OPT = \
+ cli_option("--waiting", default=None,
+ action="store_const", dest="status_filter",
+ const=frozenset([
+ constants.JOB_STATUS_WAITING,
+ ]),
+ help="Select waiting jobs only")
+
+