1826 for entry in cron_entries.cron: |
1826 for entry in cron_entries.cron: |
1827 description = entry.description |
1827 description = entry.description |
1828 if not description: |
1828 if not description: |
1829 description = "<no description>" |
1829 description = "<no description>" |
1830 print >>output, "\n%s:\nURL: %s\nSchedule: %s" % (description, |
1830 print >>output, "\n%s:\nURL: %s\nSchedule: %s" % (description, |
1831 entry.schedule, |
1831 entry.url, |
1832 entry.url) |
1832 entry.schedule) |
1833 schedule = groctimespecification.GrocTimeSpecification(entry.schedule) |
1833 schedule = groctimespecification.GrocTimeSpecification(entry.schedule) |
1834 matches = schedule.GetMatches(now, self.options.num_runs) |
1834 matches = schedule.GetMatches(now, self.options.num_runs) |
1835 for match in matches: |
1835 for match in matches: |
1836 print >>output, "%s, %s from now" % ( |
1836 print >>output, "%s, %s from now" % ( |
1837 match.strftime("%Y-%m-%d %H:%M:%S"), match - now) |
1837 match.strftime("%Y-%m-%d %H:%M:%S"), match - now) |
1895 the app, and appcfg.py will create/update the app version referenced |
1895 the app, and appcfg.py will create/update the app version referenced |
1896 in the app.yaml file at the top level of that directory. appcfg.py |
1896 in the app.yaml file at the top level of that directory. appcfg.py |
1897 will follow symlinks and recursively upload all files to the server. |
1897 will follow symlinks and recursively upload all files to the server. |
1898 Temporary or source control files (e.g. foo~, .svn/*) will be skipped."""), |
1898 Temporary or source control files (e.g. foo~, .svn/*) will be skipped."""), |
1899 |
1899 |
1900 |
1900 "update_cron": Action( |
1901 |
1901 function="UpdateCron", |
1902 |
1902 usage="%prog [options] update_cron <directory>", |
1903 |
1903 short_desc="Update application cron definitions.", |
1904 |
1904 long_desc=""" |
1905 |
1905 The 'update_cron' command will update any new, removed or changed cron |
1906 |
1906 definitions from the cron.yaml file."""), |
1907 |
|
1908 |
1907 |
1909 "update_indexes": Action( |
1908 "update_indexes": Action( |
1910 function="UpdateIndexes", |
1909 function="UpdateIndexes", |
1911 usage="%prog [options] update_indexes <directory>", |
1910 usage="%prog [options] update_indexes <directory>", |
1912 short_desc="Update application indexes.", |
1911 short_desc="Update application indexes.", |
1943 long_desc=""" |
1942 long_desc=""" |
1944 The 'request_logs' command exports the request logs from your application |
1943 The 'request_logs' command exports the request logs from your application |
1945 to a file. It will write Apache common log format records ordered |
1944 to a file. It will write Apache common log format records ordered |
1946 chronologically. If output file is '-' stdout will be written."""), |
1945 chronologically. If output file is '-' stdout will be written."""), |
1947 |
1946 |
1948 |
1947 "cron_info": Action( |
1949 |
1948 function="CronInfo", |
1950 |
1949 usage="%prog [options] cron_info <directory>", |
1951 |
1950 options=_CronInfoOptions, |
1952 |
1951 short_desc="Display information about cron jobs.", |
1953 |
1952 long_desc=""" |
1954 |
1953 The 'cron_info' command will display the next 'number' runs (default 5) for |
1955 |
1954 each cron job defined in the cron.yaml file."""), |
1956 |
|
1957 |
1955 |
1958 |
1956 |
1959 |
1957 |
1960 } |
1958 } |
1961 |
1959 |