def _cancel_by_status(ticket):
"""
Action cancelled because of ticket status
"""
current_job = get_current_job()
Logger.error(unicode('Ticket %d is %s, Skipping...' % (ticket.id, ticket.status)))
ServiceActionJob.objects.filter(
asynchronousJobId=current_job.id
).update(
status='cancelled',
comment='ticket is %s' % (ticket.status)
)
评论列表
文章目录