fp/services/bot/src/tasks
CJ_Clippy 92cce429b3 capture basic function 2024-09-20 19:01:21 -08:00
..
README.md capture basic function 2024-09-20 19:01:21 -08:00
restart_failed_recordings.ts chatops progress 2024-08-16 18:42:44 -08:00
update_discord_message.ts add velero 2024-09-16 08:31:51 -08:00
update_vod_statuses.test.ts move fetchers to their own package 2024-09-05 21:39:08 -08:00
update_vod_statuses.ts move fetchers to their own package 2024-09-05 21:39:08 -08:00

README.md

Task names uses underscores because graphile_worker expects them to be that way because graphile_worker interfaces with Postgresql which uses lowercase and numberscores.

here are some administrative functions for clearing all tasks. Also see https://worker.graphile.org/docs/admin-functions

(search tags as follows because I keep losing this file) administrative tasks clear all delete all jobs addJob()

Add job via SQL

SELECT graphile_worker.add_job('process_stream_recording', max_attempts := 3);

complete/cancel a job via SQL

SELECT * FROM graphile_worker.complete_jobs(ARRAY[7, 99, 38674, ...]);

cancel all jobs

SELECT * FROM graphile_worker.complete_jobs(
  ARRAY(SELECT id FROM graphile_worker.jobs)
);