226 lines
6.0 KiB
JSON
226 lines
6.0 KiB
JSON
{
|
|
"Affinities": null,
|
|
"AllAtOnce": false,
|
|
"Constraints": null,
|
|
"ConsulNamespace": "",
|
|
"CreateIndex": 14202856,
|
|
"Datacenters": [
|
|
"dc1"
|
|
],
|
|
"DispatchIdempotencyToken": "",
|
|
"Dispatched": false,
|
|
"ID": "qautomate/periodic-1763244000",
|
|
"JobModifyIndex": 14202856,
|
|
"Meta": null,
|
|
"ModifyIndex": 14202864,
|
|
"Multiregion": null,
|
|
"Name": "qautomate/periodic-1763244000",
|
|
"Namespace": "default",
|
|
"NodePool": "default",
|
|
"NomadTokenID": "",
|
|
"ParameterizedJob": null,
|
|
"ParentID": "qautomate",
|
|
"Payload": null,
|
|
"Periodic": null,
|
|
"Priority": 50,
|
|
"Region": "global",
|
|
"Spreads": null,
|
|
"Stable": false,
|
|
"Status": "dead",
|
|
"StatusDescription": "",
|
|
"Stop": false,
|
|
"SubmitTime": 1763244000001892686,
|
|
"TaskGroups": [
|
|
{
|
|
"Affinities": null,
|
|
"Constraints": null,
|
|
"Consul": null,
|
|
"Count": 1,
|
|
"Disconnect": null,
|
|
"EphemeralDisk": {
|
|
"Migrate": false,
|
|
"SizeMB": 300,
|
|
"Sticky": false
|
|
},
|
|
"MaxClientDisconnect": null,
|
|
"Meta": null,
|
|
"Migrate": null,
|
|
"Name": "app",
|
|
"Networks": null,
|
|
"PreventRescheduleOnLost": false,
|
|
"ReschedulePolicy": {
|
|
"Attempts": 1,
|
|
"Delay": 5000000000,
|
|
"DelayFunction": "constant",
|
|
"Interval": 86400000000000,
|
|
"MaxDelay": 0,
|
|
"Unlimited": false
|
|
},
|
|
"RestartPolicy": {
|
|
"Attempts": 3,
|
|
"Delay": 15000000000,
|
|
"Interval": 86400000000000,
|
|
"Mode": "fail",
|
|
"RenderTemplates": false
|
|
},
|
|
"Scaling": null,
|
|
"Services": null,
|
|
"ShutdownDelay": null,
|
|
"Spreads": null,
|
|
"StopAfterClientDisconnect": null,
|
|
"Tasks": [
|
|
{
|
|
"Actions": null,
|
|
"Affinities": null,
|
|
"Artifacts": null,
|
|
"CSIPluginConfig": null,
|
|
"Config": {
|
|
"args": [
|
|
"-v",
|
|
"-c",
|
|
"/local/prestart.sh"
|
|
],
|
|
"image": "ghcr.io/sstent/ubuntu-python3"
|
|
},
|
|
"Constraints": null,
|
|
"Consul": null,
|
|
"DispatchPayload": null,
|
|
"Driver": "docker",
|
|
"Env": null,
|
|
"Identities": null,
|
|
"Identity": {
|
|
"Audience": [
|
|
"nomadproject.io"
|
|
],
|
|
"ChangeMode": "",
|
|
"ChangeSignal": "",
|
|
"Env": false,
|
|
"File": false,
|
|
"Filepath": "",
|
|
"Name": "default",
|
|
"ServiceName": "",
|
|
"TTL": 0
|
|
},
|
|
"KillSignal": "",
|
|
"KillTimeout": 5000000000,
|
|
"Kind": "",
|
|
"Leader": false,
|
|
"Lifecycle": {
|
|
"Hook": "prestart",
|
|
"Sidecar": false
|
|
},
|
|
"LogConfig": {
|
|
"Disabled": false,
|
|
"MaxFileSizeMB": 10,
|
|
"MaxFiles": 10
|
|
},
|
|
"Meta": null,
|
|
"Name": "setup",
|
|
"Resources": {
|
|
"CPU": 100,
|
|
"Cores": 0,
|
|
"Devices": null,
|
|
"DiskMB": 0,
|
|
"IOPS": 0,
|
|
"MemoryMB": 300,
|
|
"MemoryMaxMB": 0,
|
|
"NUMA": null,
|
|
"Networks": null,
|
|
"SecretsMB": 0
|
|
},
|
|
"RestartPolicy": {
|
|
"Attempts": 3,
|
|
"Delay": 15000000000,
|
|
"Interval": 86400000000000,
|
|
"Mode": "fail",
|
|
"RenderTemplates": false
|
|
},
|
|
"ScalingPolicies": null,
|
|
"Schedule": null,
|
|
"Services": null,
|
|
"ShutdownDelay": 0,
|
|
"Templates": [
|
|
{
|
|
"ChangeMode": "restart",
|
|
"ChangeScript": null,
|
|
"ChangeSignal": "",
|
|
"DestPath": "local/prestart.sh",
|
|
"EmbeddedTmpl": "#!/bin/bash\nrm /usr/lib/python3.11/EXTERNALLY-MANAGED\npip3 install qbittorrent-api --upgrade\npython3 /local/torrent_tagger.py\npython3 /local/torrent_tidy.py\n\n",
|
|
"Envvars": false,
|
|
"ErrMissingKey": false,
|
|
"Gid": null,
|
|
"LeftDelim": "{{",
|
|
"Once": false,
|
|
"Perms": "777",
|
|
"RightDelim": "}}",
|
|
"SourcePath": "",
|
|
"Splay": 5000000000,
|
|
"Uid": null,
|
|
"VaultGrace": 0,
|
|
"Wait": null
|
|
},
|
|
{
|
|
"ChangeMode": "restart",
|
|
"ChangeScript": null,
|
|
"ChangeSignal": "",
|
|
"DestPath": "local/torrent_tagger.py",
|
|
"EmbeddedTmpl": "{{ key \"functions/torrent_tagger\" }}",
|
|
"Envvars": false,
|
|
"ErrMissingKey": false,
|
|
"Gid": null,
|
|
"LeftDelim": "{{",
|
|
"Once": false,
|
|
"Perms": "0644",
|
|
"RightDelim": "}}",
|
|
"SourcePath": "",
|
|
"Splay": 5000000000,
|
|
"Uid": null,
|
|
"VaultGrace": 0,
|
|
"Wait": null
|
|
},
|
|
{
|
|
"ChangeMode": "restart",
|
|
"ChangeScript": null,
|
|
"ChangeSignal": "",
|
|
"DestPath": "local/torrent_tidy.py",
|
|
"EmbeddedTmpl": "{{ key \"functions/torrent_tidy\" }}",
|
|
"Envvars": false,
|
|
"ErrMissingKey": false,
|
|
"Gid": null,
|
|
"LeftDelim": "{{",
|
|
"Once": false,
|
|
"Perms": "0644",
|
|
"RightDelim": "}}",
|
|
"SourcePath": "",
|
|
"Splay": 5000000000,
|
|
"Uid": null,
|
|
"VaultGrace": 0,
|
|
"Wait": null
|
|
}
|
|
],
|
|
"User": "",
|
|
"Vault": null,
|
|
"VolumeMounts": null
|
|
}
|
|
],
|
|
"Update": null,
|
|
"Volumes": null
|
|
}
|
|
],
|
|
"Type": "batch",
|
|
"UI": null,
|
|
"Update": {
|
|
"AutoPromote": false,
|
|
"AutoRevert": false,
|
|
"Canary": 0,
|
|
"HealthCheck": "",
|
|
"HealthyDeadline": 0,
|
|
"MaxParallel": 0,
|
|
"MinHealthyTime": 0,
|
|
"ProgressDeadline": 0,
|
|
"Stagger": 0
|
|
},
|
|
"VaultNamespace": "",
|
|
"Version": 0,
|
|
"VersionTag": null
|
|
} |