visevol / GithubVisualisation

PFE028 Été 2024
MIT License
0 stars 1 forks source link

[Backend] Add `RepositorySyncJob` #26

Closed zergov closed 1 week ago

zergov commented 1 week ago

Closes: https://github.com/visevol/GihubVisualisation/issues/12

This PR setups solid_queue for development. It also adds the mission_control-jobs gem, and mount the routes of that gem whenever rails is in the development environment.

Finally, it adds the RepositorySyncJob, which is just a job that wraps the execution of the RepositorySyncService.

You can enqueue the job like this:

RepositorySyncJob.perform_later(repository_id: 1)