Comments (5)
Termux:Tasker only "requests" a default timeout, which is now 10s
for all cases in version 0.5. Check number 9
in Issue 36 for details. The user can still override it from the plugin host side, even though commands themselves are not directly affected by any timeout set. Automate app was however considering it as a literal timeout instead of a request, but has provided a Ignore Timeout option in version 1.23.1.
So this issue should be considered as solved, even though a "no timeout" can be sent back only in the case if plugin action is being configured by the Automate app, if the devs and users think that would be better. Would this be the value 0
? Although, the Tasker way IMO is better since it provides the user more control, specially with Continue Task Immediately
behaviour.
Automate app should also request the permission com.termux.permission.RUN_COMMAND
for the plugin to work in version >= 0.5
. Check the updated README for more information.
from termux-tasker.
Hihi! I'm the one who put that default there, and while I'm not sure how to set it from Automate, there is indeed an option for setting the timeouts in Tasker~ (10 seconds is just the default value the plugin suggests initially--so don't worry, it's not a hardcoded limit!)
The reason for a 10 second default was because most actions are pretty quick--and if something took that long, it was just less annoying to let someone set that time to a bigger number rather than force someone to wait longer if they accidentally did something that would never stop.
This post was made too long ago for me to reply, and I'm not really affiliated with Tasker or anyone else that can change how this all works, but the suggested timeout from the plugin should be in the net.dinglisch.android.tasker.extras.REQUESTED_TIMEOUT
extra in the intent sent to Tasker after configuration. (After which, you have the ability to override it in Tasker itself--but if you can't override it in Automate, then perhaps you have the ability to at least change that extra before it gets there)
And speaking of:
I don't know why they think the hostSupportsSynchronousExecution flags requires a timeout, maybe that's some Tasker limitation, the plug-in API is so poorly documented.
The reason I put that there is because it doesn't make sense to wait for the result of an asynchronous task; halting the task and waiting for the results of the script is what "synchronous" means in this case.
Basically, having no timeout on a Tasker action makes it asynchronous, and in termux-tasker's case that means it won't ever kill the resulting process (Because it doesn't need to, since it's not holding up the task)--but it also means you can't use the exit status or output in subsequent actions since you will probably run them before your script can finish.
This is explained in the comment above the code they linked:
from termux-tasker.
from termux-tasker.
Hey! Happy to help!
And sorry for the extremely long delay--I'm not actually part of the core Termux team or anything, so it was just kinda random chance that I saw this issue. But yeah! I don't think the issue is a plugin one.
Tasker plugins suggest default values for things that are configured in Tasker itself--and timeout
just happens to be one of those options.
If you'd like a stop-gap fix in the meantime, if Automate can run based on received intents, you could make your script fork into a background process. Then, when it finishes, have it run:
am broadcast -a net.dinglish.tasker.continue
And then listen for that in your task continuation and continue!
For a more permanent solution, I would recommend suggesting a feature request for Automate to allow configuring the suggested values that plugins return for things like timeout.
You can even include a link to this issue, since it has some information that might be handy for handling Tasker plugins--since I imagine this might be an issue for others as well!
I hope this helps, and good luck..! ^^
from termux-tasker.
Since no default timeout for Automate has been suggested, closing this.
Related fecba50
from termux-tasker.
Related Issues (20)
- Is the development of this plugin stopped? I can't install in on Android 14 HOT 1
- bash: extglob off in the plugin - not possible to enable it HOT 4
- Plugin doesn't work on Android 14 HOT 4
- The argument not support file paths HOT 2
- App package conflicting HOT 1
- Cannot install: Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE] HOT 4
- change request: make com.termux.permission.RUN_COMMAND permission enforcement optional HOT 3
- Error installing Termux Tasker HOT 1
- I can't install this app on my Android HOT 1
- stdout not working with Tasker HOT 9
- Installation issue HOT 1
- httpie binary doesn't work in background HOT 9
- My script output dissappears immediately after running HOT 2
- Working directory doesn't seem to work if there are spaces in the name
- Actions downloads expired HOT 1
- "other plugin host apps"? HOT 1
- Readme unclear HOT 2
- Script not found HOT 9
- bash - "Arguments" doesn't accept bash commands HOT 3
- App icon stay showed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termux-tasker.