Skip to content

Conversation

@soline-b
Copy link
Collaborator

@soline-b soline-b commented Nov 3, 2025

⚠️ Cette PR dépend beaucoup de la PR 306 car elle se base sur les modifications qui y sont apportées.

value=get_jobs(clusters[cluster_name], time_from, time_to))

if auto_interval is not None:
set_auto_end_time(cluster_name, auto_end_field, time_to)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Préfère-t-on appeler set_auto_end_time lors du parse ?

clusters_cfg = config("scraping").clusters
assert clusters_cfg is not None

parse_jobs(self.cluster_names, clusters_cfg, self.from_)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L'ajout à MongoDB se fait pour l'instant dans la fonction parse_jobs. Préfère-t-on le faire directement ici (avec un parse_jobs qui retourne une liste de jobs) ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je crois que c'est bien correct avec un parse_jobs.


def execute(self) -> int:

clusters_cfg = config("scraping").clusters
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ici, clusters_cfg est récupéré à partir " config("scraping"). Souhaite-t-on faire un fichier de configuration pour le parsing ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est quelque chose auquel je réfléchis, mais pour cette PR on peut laisser comme ça.

@soline-b soline-b marked this pull request as ready for review January 23, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants