Schedules are like Cron in the cloud, you can setup recurring schedulers for a task that will be executed on your schedule.List SchedulesGET /projects/:project_id/schedules ParametersIn URL:
Required: Optional: HTTP GET /2/projects/4eb1b46fcddb13606500000d/schedules?oauth=jTxYQDmMx5ZtVeZBT8jVx6oJDLw Response{ "schedules": [ { "id": "4eb1b490cddb136065000011", "Timestamper": { "created_at": 1320268944162000000, "updated_at": 1320268971000000000 }, "project_id": "4eb1b46fcddb13606500000d", "api_version": 2, "msg": "Ran max times.", "status": "complete", "error_class": "Patron::HostResolutionError", "delay_type": "fixed_delay", "code_name": "helloFromPythonOLFSEQETEM", "delay": 10, "start_at": "2011-11-02T21:22:34Z", "end_at": "2262-04-11T23:47:16Z", "next_start": "2011-11-02T21:22:34Z", "last_run_time": 1320268971000000000, "run_times": 1, "run_count": 1 } ] } Create a SchedulePOST /projects/:project_id/schedules ParametersIn URL:
In JSON:
Minimum Viable Request:
{ schedules:[{ delay: <int> [seconds], code_name: <string> }] }
Annotated Request: { oauth: <token>, schedules: [ { delay : <int> [seconds], start_at : <string> [UTC timestamp], payload : <payload>, name: <schedule_name>, code_name: <code_name> }, ... ] } Example:
Response{ "msg": "Scheduled", "schedules": [ { "id": "4eb1b490cddb136065000011" } ], "status_code": 200 } Get a ScheduleGET /projects/:project_id/schedules/:schedule_id ParametersIn URL:
Required: Optional: HTTP GET /2/projects/4eb1b46fcddb13606500000d/schedules/4eb1b490cddb136065000011?oauth=jTxYQDmMx5ZtVeZBT8jVx6oJDLw Response{ "id": "4eb1b490cddb136065000011", "Timestamper": { "created_at": 1320268944162000000, "updated_at": 1320268971000000000 }, "project_id": "4eb1b46fcddb13606500000d", "api_version": 2, "msg": "Ran max times.", "status": "complete", "error_class": "Patron::HostResolutionError", "delay_type": "fixed_delay", "code_name": "helloFromPythonOLFSEQETEM", "delay": 10, "start_at": "2011-11-02T21:22:34Z", "end_at": "2262-04-11T23:47:16Z", "next_start": "2011-11-02T21:22:34Z", "last_run_time": 1320268971000000000, "run_times": 1, "run_count": 1 } |
API - Version 2 >