exp:expcontentjob
Run, list, resume and cancel content jobs: large subtree removes and copies in batches.
Script bin/php/expcontentjob.php, code in kernel/private/classes/commands/expcontentjob.php. Run it from the installation root, as the user the web server runs as:
./console exp:expcontentjob --help
php bin/php/expcontentjob.php --helpHelp text
Content jobs: large subtree removes and copies, run in batches in the background.
list [--all] [--resume] the jobs (heartbeat age, stalled); --resume: resume every stalled or failed one
show <id> [--json] one job and the end of its log
run <id> run a job in the foreground
resume <id> [--background] resume a failed job or one whose worker died
cancel <id> stop a job after its current batch
remove <node id>[,...] [--trash|--delete] [--background]
copy <src node> <dest parent> [--all-versions] [--keep-creator] [--keep-time] [--background]
move <node> <new parent> | hide <node> | reveal <node> | section <node> <section id> [--scope=...] | state <node> <state id>
addlocation <target node> <node>[,...] | removelocation <node>[,...] (all: [--background])Options
| Option | Value | Help |
|---|---|---|
--all | list: every job, not only the active and failed ones | |
--resume | list: resume every stalled or failed job, each with a worker in the background | |
--json | show: the job as JSON | |
--background | remove, copy, resume: start a detached worker and return | |
--trash | remove: move the objects to the trash (the default of content.ini [RemoveSettings]) | |
--delete | remove: delete the objects permanently | |
--all-versions | copy: copy all versions of each object, not only the current one | |
--keep-creator | copy: keep the owner and creator of the copied objects | |
--keep-time | copy: keep the creation and modification times | |
--scope | required | section: which objects below the node get the section: subtree (the default, all of them), inherited (those that have the section of the node's object, not branches in another section) or object (none) |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/expcontentjob.php, kernel/private/classes/commands/expcontentjob.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.