Schedule a spider run (also known as a job), returning the job id.

  • HELP

      Run Spider

    • project (string, required) - the project name
    • _version (string, optional) - the version of the project to use, default: the latest version
    • spider (string, required) - the spider name
    • jobid (string, optional) - a job id used to identify the job, overrides the default generated UUID
    • setting (string, optional) - a Scrapy setting to use when running the spider. (See Scrapy settings)
    • any other parameter is passed as spider argument. (See Scrapy spider-arguments)

    • Timer Task

    • To get the local timezone of your host:
      $ pip install tzlocal
      from tzlocal import get_localzone
      print(get_localzone())

    • Keep in mind that the start_date limit would become invalid if you select the action to fire the task right now.

    • Also note that the misfire_grace_time would be saved as None if it's set to 0, which means that the scheduler would reschedule the misfired task no matter how long it has been missed.
    • Otherwise, just set misfire_grace_time to 1 to ignore any misfired task missed by more than 1 second.

    • Check out apscheduler.triggers.cron and apscheduler.schedulers.base.BaseScheduler.add_job and userguide for more info.
4-digit year, e.g. 2019;
Defaults to * for any year
month (1-12);
Defaults to * for any month;
e.g. 1,6-8 equals to 1,6,7,8
day (1-31);
Defaults to * for any day;
Can be `1st mon` or `last sun` of the month
ISO week (1-53);
Defaults to * for any week;
`import datetime; print(datetime.date(2019, 12, 31).isocalendar()[1])`
hour (0-23);
Defaults to * for any hour;
e.g. 9,17,8-20/4 equals to 8,9,12,16,17,20
minute (0-59);
Defaults to 0 instead of *;
e.g. */10 to fire every 10 mins
second (0-59);
Defaults to 0 instead of *;
Caution with value *
To get the local timezone of your host,
run command 'pip install tzlocal' first,
then execute `from tzlocal import get_localzone; print(get_localzone())`
Execute task by random delay of [-N, +N] secs;
Defaults to 0;
Search 'jitter' in apscheduler.readthedocs.io/en/latest/modules/triggers/cron.html
Max tolerance of delay for misfired task;
Defaults to 600 secs;
See apscheduler.readthedocs.io/en/latest/userguide.html#missed-job-executions-and-coalescing
Max concurrently running instances of this task;
Defaults to 1;
See apscheduler.readthedocs.io/en/latest/userguide.html#limiting-the-number-of-concurrently-executing-instances-of-a-job
To select nodes in the Servers page »
*multinodes
scrapyd-1:6800
Select at least one node