diff --git a/docs/application/monthly-service.png b/docs/application/monthly-service.png new file mode 100644 index 0000000000000000000000000000000000000000..f635574fbf20afa945df4260d2097eafb495be15 Binary files /dev/null and b/docs/application/monthly-service.png differ diff --git a/docs/application/services.md b/docs/application/services.md new file mode 100644 index 0000000000000000000000000000000000000000..71bad7d5029f15e7b4524d6dd51217882caabc4c --- /dev/null +++ b/docs/application/services.md @@ -0,0 +1,19 @@ +!!! warning "" + :construction: Section under Construction :construction: + +## Cron Services - Monthly Report + +In order to build an automated task within our cozy-stack, we can create *services* which are javascript files called from a trigger job. + +On Ecolyo, we add a trigger that is launched every month with a *cron* attribute. On that trigger we link a .js script then we instanciate this script with cozy-client. + +### Service.js + +### Manifest Config + + + +!!! note "Cron Definition" + [cozy-stack](https://docs.cozy.io/en/cozy-stack/jobs/#cron-syntax) + +### Testing \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index d0c527122602e7ce44e83dbcf7b9233ca86970bb..891ff871a1f5495f971230ad40a6b06d407c4025 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -31,6 +31,7 @@ nav: - Application: - Description: application/description.md - Scaffolding: application/scaffolding.md + - Services: application/services.md - Gitflow: application/gitflow.md - Deploy: application/deploy.md - Konnectors: