Comments (2)
I do not know why it does not show up here but, we do use both of these:
https://github.com/newfold-labs/wp-module-tasks/blob/main/includes/Models/Data/Task.php#L222
https://github.com/newfold-labs/wp-module-tasks/blob/main/includes/Models/Data/Task.php#L215
from wp-module-tasks.
Ah, strange.
I feel like the task_executor_path
is something that our module shouldn't have to do. The entity registering the task should ensure that the function is always available.
Also, we should probably allow more than just function calls for task_execute
. This way, we can register a static class method like MyClass::Method
or [MyClass::class, 'Method']
. This would allow for autoloading.
from wp-module-tasks.
Related Issues (14)
- Update Satis reference in readme file
- Consider making priority optional
- Implement tests
- Avoid use of `phpcs:ignore`
- Drop `Models.php` file since it isn't in use
- Call the `setup_task_*` functions via `register_activation_hook`
- Ensure use of `$wpdb->prepare()`
- Use `set_time_limit()` instead of `ini_set( 'max_execution_time' )`
- Reconsider method of Task instantiation
- Should we be using any additional indexes on our custom tables?
- What are the use cases for disabling a task? HOT 1
- Restrict when tables checks are done and add code to allow deleting tables as well
- Make cron schedule configurable HOT 1
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 wp-module-tasks.