<commit_before>Cron
=============================

<!-- 
	This file is written in Markdown syntax. 
	For more information about how to use the Markdown syntax, read here:
	http://daringfireball.net/projects/markdown/syntax
-->


[TOC]

Introduction
------------

The cron module allows you to do tasks regularly, by setting up a cron
job that calls a hook in SimpleSAMLphp.  This will invoke
`hooks/hook_cron.php` in any enabled modules


Preparations
------------

You need to enable the module and copy the `config-templates` files of the module into the global `config/` directory.

	[root@simplesamlphp] cd /var/simplesamlphp<commit_msg>cron: update docs to clarify purpose<commit_after>Cron
=============================

[TOC]

Introduction
------------

The cron module allows you to do tasks regularly, by setting up a cron
job that calls a hook in SimpleSAMLphp.  This will invoke
`hooks/hook_cron.php` in any enabled modules

Modules, like e.g. the metarefresh module, that want to invoke tasks
on set times, can register cron hooks for use by this module. You in turn
configure your system's `cron` or other time based execution functionality
to periodically trigger this module's endpoint, so all registered hooks
will be executed at that time. This module also takes care of reporting
back the result and provides an interface in SimpleSAMLphp's admin
panel to trigger jobs manually.

Preparations
------------

You need to enable the module and copy the `config-templates` files of the module into the global `config/` directory.

	[root@simplesamlphp] cd /var/simplesamlphp
{'fraction_non_alphanumeric': 0.11586901763224182, 'fraction_numerical': 0.0, 'mean_word_length': 3.9501557632398754, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1972035', 'n_tokens_mistral': 437, 'n_tokens_neox': 414, 'n_words': 208}