We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public static Set<String> closeIdSet = new HashSet<>(); executor.execute(() -> { // thread Thread currentThread = Thread.currentThread(); String currentJobId="xxxx"; ScheduledExecutorService sche= new ScheduledThreadPoolExecutor(1); sche.scheduleAtFixedRate(() -> { if(closeIdSet.contains(currentJobId)){ //force stop thread and stop job !! . how to do force stop job? currentThread.stop(); } }, 0, 1, TimeUnit.SECONDS); FFmpegJob job = executor.createJob(builder) job.run(); // job running. need force stop running next steps xxxx xxxx xxxx }); //add closeIdSet "xxxx" in other thread
The text was updated successfully, but these errors were encountered:
just stop job.run(). like as
Process p = runFunc.run(path(args)); assert (p != null); p.destroyForcibly()
Can this be done without modifying the source code
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: