Jump to content

Talk:Toolserver:Job scheduling

Add topic
From mediawiki.org
Latest comment: 11 years ago by 92.206.116.193 in topic Cluster needed?

This page was moved from the Toolserver wiki.
Toolserver has been replaced by Toolforge. As such, the instructions here may no longer work, but may still be of historical interest.
Please help by updating examples, links, template links, etc. If a page is still relevant, move it to a normal title and leave a redirect.

How can I convert the following crontab to the new format?

#m h  dom mon dow   command
@reboot /home/pasqual/autostart.sh
@daily tail -1000 /home/pasqual/public_html/pywikipedia/logs/commands.log > /home/pasqual/public_html/pywikipedia/logs/commands.log
@monthly /home/pasqual/public_html/update_pywiki.sh
@monthly /home/pasqual/public_html/pywikipedia/user_scripts/arxiva_taverna.py
30 22 1,15 * * /home/pasqual/public_html/pywikipedia/user_scripts/indicadors.py -edit
0 23 * * * /home/pasqual/public_html/pywikipedia/user_scripts/depth.py -edit
0 11,19,23 * * * /home/pasqual/public_html/pywikipedia/user_scripts/llista1000.sh -edit
0 22 * * 0 /home/pasqual/public_html/pywikipedia/user_scripts/withoutIW.py

Pasqual 13:45, 13 January 2011 (UTC)

Questions or Ideas for improvements

[edit]

Converting an existing cron job to use the scheduler

[edit]
0 3 * * * cronsub -s mytool $HOME/mytool.py

"mytool" is how you tell cronsub your tool is named. The output from the tool will be written to $HOME/mytool.out.


  1. Does mytool (and obviously mytool) correspond to mytool or to mytool?
  2. Does mytool have to be the same as mytool?
  3. "The output from the tool will be written to $HOME/mytool.out." == appended to existing or rewritten on every single run?
  4. How to write the tool output elsewhere?

Optional resources: SQL server "sql"

[edit]

Which resource should be used, if I connect to "sql" as dns alias? I always connect to "sql" for my user databases. --92.206.116.193 22:46, 11 January 2013 (UTC)Reply

Cluster needed?

[edit]

Is it needed to know on which cluster a particular language version is? It's nice to have dewiki-p.rrdb.toolserver.org or dewikisource-p.rrdb.toolserver.org - and now I have to look again, on which cluster they are and have to change things, if WMF change things? --92.206.116.193 22:48, 11 January 2013 (UTC)Reply