-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chronos, docs: Add job variable support
- Loading branch information
Showing
5 changed files
with
94 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Creating cron jobs | ||
================== | ||
|
||
Cron job variables | ||
------------------ | ||
In the URL, header values and request body of your cron jobs, you can use special variables. Those special | ||
variables will be replaced with a corresponding value each time cron-job.org executes your job. | ||
|
||
Supported variables | ||
^^^^^^^^^^^^^^^^^^^ | ||
The following variables are supported by cron-job.org: | ||
|
||
================ ========================================================== =============== | ||
Variable Description Example | ||
================ ========================================================== =============== | ||
%cjo:unixtime% Current unix timestamp ``1722623610`` | ||
%cjo:uuid4% A UUID v4 unique identifier (not for cryptographic usage) ``bd901c8b-11ea-431c-9311-90348e9b3a7f`` | ||
================ ========================================================== =============== | ||
|
||
Using a variable multiple times will cause the corresponding value to be re-generated for each occurence of | ||
the variable. For example, using the ``%cjo:uuid4%`` variable twice will produce two different UUIDs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters