A task scheduling client that is easy to use and expand, and accepts various job trigger types.
1.7K
__ _ _ _
\ \ ___ | |__ /_\ __ _ ___ _ __ | |_
\ \/ _ \| '_ \ //_\\ / _` |/ _ \ '_ \| __|
/\_/ / (_) | |_) / _ \ (_| | __/ | | | |_
\___/ \___/|_.__/\_/ \_/\__, |\___|_| |_|\__|
|___/
📖👉 查看中文帮助文档
JobAgent is a task scheduling client that is easy to use and expand, and accepts various job trigger types. It is implemented using the JobsFactory task scheduling framework. It is written in dotnet8. It is an upgrade and refactoring of my earlier open-source project BeesTask .
Before using this framework, please determine whether it is suitable for your needs based on the supported job types.
| Value | Type | Example Value | Description |
|---|---|---|---|
| Setup | Installation and Upgrade | "" | Runs after startup |
| Startup | Startup | "2000" | Runs before all tasks after Setup, with a delay of 2 seconds. May run continuously. |
| Event | Event Trigger | "DirChangeEventer" | Triggered when the specified directory changes |
| Interval | Interval Execution | "00:00:20" | Runs every 20 seconds |
| Schedulable | Cron Expression | "* 0/10 * * * ?" | Cron expression: Executes every 10 minutes |
NOTE: Job type extensions are not supported at the moment.
Available Docker registries:
Visit https://hub.docker.com/r/aicrosoft/jobagent to get the latest Docker image.
| Version | Type | Description |
|---|---|---|
| 1.2.3.4 | Standard | Root privileges + No shell series |
| latest | Latest Standard | Root privileges + No shell, latest |
| secure | Secure | Minimum privileges + No shell, latest |
| debug | Debug | Root privileges + Shell + JobSamples plugin, latest |
# You can enter the container to perform operations
sudo docker run -d \
--name jobagent-de \
aicrosoft/jobagent:debug
## The DEBUG version image already includes the JobSamples plugin.
## Create a container.
sudo docker run -d \
--name jobagent \
-v /apps/ja/logs:/app/logs:rw \
-v /apps/ja/plugins:/app/Plugins:rw \
-v /apps/ja/states:/app/states:rw \
aicrosoft/jobagent:latest
## Pre-create empty directories on the host machine and assign permissions
sudo mkdir -p /apps/ja/logs /apps/ja/plugins /apps/ja/states
sudo chmod -R 777 /apps/ja
sudo chown -R 65532:65532 /apps/ja
## Create a container.
sudo docker run -d \
--name jobagent \
-v /apps/ja/logs:/app/logs:rw \
-v /apps/ja/plugins:/app/Plugins:rw \
-v /apps/ja/states:/app/states:rw \
aicrosoft/jobagent:latest
/app/logs. Logs will only be retained for 30 days./app/states./app/Plugins, you must place the plugin content in the corresponding path on the host machine./app/appsettings.json to the corresponding configuration on the host machine./app/Plugins/PluginName/PluginName.json to the corresponding configuration on the host machine.Contributions are welcome! Feel free to submit a Pull Request.
A good question is more important than the answer!
Content type
Image
Digest
sha256:437b1ee73…
Size
48.9 MB
Last updated
11 months ago
docker pull aicrosoft/jobagent