Commit Graph

18 Commits

Author SHA1 Message Date
Valentin Deniaud 989fb52719 misc: apply pyupgrade (#61865) 2022-09-29 16:22:29 +02:00
Valentin Deniaud 2d6e859971 jobs: add missing checks in runjob command (#67613) 2022-07-25 13:50:08 +02:00
Lauréline Guérin c1074b68fc
misc: fix unused-import pylint error (#62099) 2022-03-25 09:03:35 +01:00
Lauréline Guérin dbb8416537
misc: add __init__ file to tests dir (#62099) 2022-03-25 08:24:24 +01:00
Valentin Deniaud ce1756c9ee jobs: do not log APIError as errors (#56266) 2021-08-30 10:28:06 +02:00
Nicolas Roche 06db6d8767 misc: apply isort (#52937) 2021-05-07 13:51:13 +02:00
Frédéric Péters 3d9df1e526 trivial: apply black (#49820) 2021-02-20 16:28:47 +01:00
Lauréline Guérin d53ce49abb
jobs: use uwsgi spooler to run jobs (#50017) 2021-02-04 08:46:21 +01:00
Valentin Deniaud 82b9459cbf base_adresse: use job to fetch data at create and edit (#50087) 2021-01-19 11:27:13 +01:00
Lauréline Guérin 637eda15a2
base_adresse: use new ban data (#38204) 2020-04-28 15:28:09 +02:00
Emmanuel Cazenave 8d277a42d7 test jobs: read files in binary mode (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave f9b0a99e0e tests: use absolute imports (#38923)
And delete some __init__.py in tests directory.
2020-01-14 19:20:26 +01:00
Benjamin Dauvergne b2c3302144 tests: fix naive datetime warning (#37760) 2019-11-25 11:55:36 +01:00
Lauréline Guérin e3d3ba295a
base_adresse: don't clear streets if file is empty (#20308) 2019-10-14 10:03:38 +02:00
Benjamin Dauvergne d629c50e2e misc: add after_timestamp to run Job later (#36215)
The after_timestamp can be set:
- when adding the job with:

    self.add_job(..., after_timestamp=datetime(...))

- when skipping a job with:

    raise SkipJob(after_timestamp=datetime(...))
2019-10-01 10:31:11 +02:00
Frédéric Péters f9dd7454d8 misc: don't run jobs if connector is down (#36193) 2019-09-17 14:59:39 +02:00
Frédéric Péters e3e729a289 misc: log job errors (#36185) 2019-09-17 14:24:23 +02:00
Frédéric Péters 5257471818 general: add basic asynchronous job infrastructure (#12469) 2019-02-20 11:31:48 +01:00