Create Job to Refresh Modern.gov data

In order that the Modern.gov data is kept up-to-date you need to create a Workflow Job to run the Tasks required to download and build the data.

To do this you will need to add a Job entry. Right click on the Jobs entry in the tree and select New Job.

Job Name

Enter a unique name for your job e.g. Update Modern.gov Data.

 

Now you need to perform the following steps:

  • First let's add the two Data Share Connections that we have just created to this Job. Click on the green plus icon and select each Modern.gov Data Share connection from the list.

For Councillors data:


For MPs data:


Once you have created your Data Share Connections and Tasks you will need make sure that the tasks are run in the following order; you can use the up  and down  arrows to change the order:

  1. Moderngov_councillors [DataShare]
  2. Format Modern.gov Councillors - [Depends on previous job]
  3. Modern.gov Councillors Geometry - [Depends on previous job]
  4. Moderngov_mps_councillors [DataShare]
  5. Format Modern.gov MPs - [Depends on previous job]
  6. Modern.gov MPs Geometry - [Depends on previous job]


For those tasks flagged as [Depends on previous job] you will need to select the Dependant button. This means that the task is dependant upon the previous one completing successfully.

Click Save to save your changes.

 

Next you need to schedule when to run the update. Simply select the Job in the tree and add a schedule.

For more information on how to schedule a job please refer to the Job Scheduler topic.