Controller/JobController.php
public function cancelAction($ticket, $force = false)
    {
        try {
            return $this->serialize($this->getManager()->cancel($ticket, $force));
        } catch (TicketNotFoundException $e) {
            return $this->createNotFoundResponse($e->getMessage());
        }
    }
public function cancelAction($ticket, $force = false)
    {
        try {
            return $this->serialize($this->getManager()->cancel($ticket, $force));
        } catch (TicketNotFoundException $e) {
            return $this->createNotFoundResponse($e->getMessage());
        }
    }
public function cancelAction ( $ ticket , $ force = false ) { try { return $ this -> serialize ( $ this -> getManager ( ) -> cancel ( $ ticket , $ force ) ) ; } catch ( TicketNotFoundException $ e ) { return $ this -> createNotFoundResponse ( $ e -> getMessage ( ) ) ; } }
Cancels a job.
@Operation(
tags={"AbcJobBundle"},
summary="Cancels a job",
@SWG\Response(
response="200",
description="Returned when successful",
@Model(type=Abc\Bundle\JobBundle\Model\JobList::class)
),
@SWG\Response(
response="404",
description="Returned when job not found"
),
@SWG\Parameter(
name="ticket",
in="query",
type="string",
required=true,
description="The job ticket"
),
@SWG\Parameter(
name="force",
in="query",
type="boolean",
default="false",
required=false,
description="The job ticket"
)
)

@param string $ticket
@param bool   $force Whether to force cancellation (false by default)
@return Response
Cancels a job . @Operation ( tags = { AbcJobBundle } summary = Cancels a job @SWG \ Response ( response = 200 description = Returned when successful @Model ( type = Abc \ Bundle \ JobBundle \ Model \ JobList :: class ) ) @SWG \ Response ( response = 404 description = Returned when job not found ) @SWG \ Parameter ( name = ticket in = query type = string required = true description = The job ticket ) @SWG \ Parameter ( name = force in = query type = boolean default = false required = false description = The job ticket ) )