Software Heritage Scheduler
Project description
swh-scheduler
Job scheduler for the Software Heritage project.
Task manager for asynchronous/delayed tasks, used for both recurrent (e.g., listing a forge, loading new stuff from a Git repository) and one-off activities (e.g., loading a specific version of a source package).
Tests
Running test manually
Test data
To be able to run (unit) tests, you need to have the [[https://forge.softwareheritage.org/source/swh-storage-testdata.git|swh-storage-testdata]] in the parent directory. If you have set your environment following the [[ https://docs.softwareheritage.org/devel/getting-started.html#getting-started|Getting started]] document everythong should be set up just fine.
Otherwise:
~/.../swh-scheduler$ git clone https://forge.softwareheritage.org/source/swh-storage-testdata.git ../swh-storage-testdata
Required services
Unit tests that require a running celery broker uses an in memory broker/result
backend by default, but you can choose to use a true broker by setting
CELERY_BROKER_URL
and CELERY_RESULT_BACKEND
environment variables up.
For example:
$ CELERY_BROKER_URL=amqp://localhost pifpaf run postgresql nosetests
.....................................
----------------------------------------------------------------------
Ran 37 tests in 15.578s
OK
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for swh.scheduler-0.0.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 828ae618c633877d546616a16623333aa58827303bfc4fbe36901c8d53ea17e8 |
|
MD5 | 2f8c40fed33e64e6c03407cdd1c41fdd |
|
BLAKE2b-256 | 54463b3061c4a40d37cca7a5b66b00cb7c1c0fceadef5127b0a7b6e18b2b17be |