{"id":19693500,"url":"https://github.com/ezsystems/ezplatform-cron","last_synced_at":"2025-04-29T09:31:44.100Z","repository":{"id":44644894,"uuid":"73276906","full_name":"ezsystems/ezplatform-cron","owner":"ezsystems","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-31T09:35:31.000Z","size":63,"stargazers_count":34,"open_issues_count":1,"forks_count":4,"subscribers_count":19,"default_branch":"3.1","last_synced_at":"2025-04-24T07:04:56.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ezsystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-09T11:10:01.000Z","updated_at":"2022-08-16T06:48:57.000Z","dependencies_parsed_at":"2024-06-18T16:47:08.480Z","dependency_job_id":"0b6212f4-6ab2-4cc2-b8a7-fc26a5ecb84e","html_url":"https://github.com/ezsystems/ezplatform-cron","commit_stats":{"total_commits":39,"total_committers":18,"mean_commits":"2.1666666666666665","dds":0.8717948717948718,"last_synced_commit":"8f13c8d8f20b14edf0671451137a9a9863a9816d"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezsystems%2Fezplatform-cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezsystems%2Fezplatform-cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezsystems%2Fezplatform-cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezsystems%2Fezplatform-cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezsystems","download_url":"https://codeload.github.com/ezsystems/ezplatform-cron/tar.gz/refs/heads/3.1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251473454,"owners_count":21595051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T19:17:04.609Z","updated_at":"2025-04-29T09:31:43.763Z","avatar_url":"https://github.com/ezsystems.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ibexa Cron\n\nThis package exposes [cron/cron](https://github.com/Cron/Cron) package for use in eZ Platform (or just plain Symfony) via a simle command\n`ezplatform:cron:run`.\n\nThis is *not* a replacement for [cron/cron-bundle](https://github.com/Cron/Symfony-Bundle) but rather a simpler alternative to it which can more esaily grow into focusing more on eZ Platform needs in the future including e.g. support for handling cron jobs across a cluster install _(separating jobs that should run on all nodes vs jobs that should only be run on one at a time and a lock system to go with it for instance)_.\n\n\n\n## Setup system cron\n\nPick your systems cron / scheduling and setup `ezplatform:cron:run` command to run every minute and optionally specifying category _(default: `default`)_:\n\nExample for Linux crontab (`crontab -e`):\n```bash\n* * * * * /path/to/php app/console ezplatform:cron:run [ --category=default] \u003e/dev/null 2\u003e\u00261\n```\n    \n\n\n## Setting up own cron commands\n\n\nSetting up own cron jobs is as simple as tagging services for your existing Symfony Commands.\n\nThe tag takes the following arguments:\n- `name`: `ezplatform.cron.job`\n- `schedule`: _Takes any kind of [format supported by cron/cron](https://github.com/Cron/Cron#crontab-syntax), which mimics linux crontab format. E.g. `* * * * *`_\n- `category`: _(Optional, by default: `default`) Lets you separate cronjobs that should be run under different logic then default, e.g. infrequent jobs (NOTE: Means end user will need to setup several entries in his crontab to run all categories!)_\n- `options`: _(Optional, by default: `''`) Takes custom option/s in string format which are added to the command. (E.g. '--keep=0 --status=draft' for running the cleanup versions command)_\n\n\n### Example\n\n```yml\n    date_based_published.cron.publish_scheduled:\n        class: EzSystems\\DateBasedPublisherBundle\\Command\\PublishScheduledCommand\n        tags:\n            - { name: console.command }\n            - { name: ezplatform.cron.job, schedule: '* * * * *' }\n```\n\n## Logging run command\nIf you want to log outputs of commands processed by run command you have to add the monolog channel `cronjob` to your configuration.\n\n### Example\n```yml\n    monolog:\n        channels: [...,'cronjob']\n        handlers:\n            cronjob:\n                bubble: false\n                level: info\n                type: stream\n                path: '%kernel.logs_dir%/cronjob.log'\n                channels: [cronjob]\n```\n\n## COPYRIGHT\nCopyright (C) 1999-2021 Ibexa AS (formerly eZ Systems AS). All rights reserved.\n\n## LICENSE\nThis source code is available separately under the following licenses:\n\nA - Ibexa Business Use License Agreement (Ibexa BUL),\nversion 2.4 or later versions (as license terms may be updated from time to time)\nIbexa BUL is granted by having a valid Ibexa DXP (formerly eZ Platform Enterprise) subscription,\nas described at: https://www.ibexa.co/product\nFor the full Ibexa BUL license text, please see:\n- LICENSE-bul file placed in the root of this source code, or\n- https://www.ibexa.co/software-information/licenses-and-agreements (latest version applies)\n\nAND\n\nB - GNU General Public License, version 2\nGrants an copyleft open source license with ABSOLUTELY NO WARRANTY. For the full GPL license text, please see:\n- LICENSE file placed in the root of this source code, or\n- https://www.gnu.org/licenses/old-licenses/gpl-2.0.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezsystems%2Fezplatform-cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezsystems%2Fezplatform-cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezsystems%2Fezplatform-cron/lists"}