https://prefect.io logo
a

Akharin Sukcharoen

01/18/2022, 9:50 AM
How can I fix the twice run scheduling? It make my server overload. Thank you in advance.
a

Anna Geller

01/18/2022, 9:57 AM
Hi @Akharin Sukcharoen, 1. Are you on Cloud or Server? In Cloud, there is a feature called Version Locking that ensures that your flow runs once and only once. 2. Do you happen to have two agents polling for flow runs with the same label? This could lead to a situation that you see here. Each agent should have distinct label so that each polls for different flow run labels.
This doc describes this
a

Akharin Sukcharoen

01/18/2022, 10:16 AM
1. I'm on server. 2. I only have 1 LocalAgent.
a

Anna Geller

01/18/2022, 10:20 AM
is your agent down? it should query for new flow runs every 10 seconds. You can try to clear late runs and perhaps restart the agent?
a

Akharin Sukcharoen

01/18/2022, 10:27 AM
my agent is working. but some workflow some job ran twice.
a

Anna Geller

01/18/2022, 10:36 AM
You can enable DEBUG logs on the agent to make it easier to find the root cause.
Copy code
prefect agent local start --show-flow-logs --log-level DEBUG
a

Akharin Sukcharoen

01/19/2022, 6:34 AM
I try to upgrade prefect but i faced this error. Pulling postgres ... done Pulling hasura ... download complete Pulling graphql ... download complete Pulling towel ... download complete Pulling apollo ... download complete Pulling ui ... download complete ERROR: for graphql failed to register layer: symlink ../753a933895769d16a9f50e547a17525d552c3f71551ee123b7fc73ca9fefbc69/diff /var/lib/docker/overlay2/l/B5VLSRNEDH3NABDXEFXCIRNLR2: no such file or directory ERROR: for towel failed to register layer: symlink ../753a933895769d16a9f50e547a17525d552c3f71551ee123b7fc73ca9fefbc69/diff /var/lib/docker/overlay2/l/B5VLSRNEDH3NABDXEFXCIRNLR2: no such file or directory ERROR: for hasura failed to register layer: symlink ../9e83ca61c81268bc9fb45be76dec1d0897716ce0633ce79aabbb49c98c9802bc/diff /var/lib/docker/overlay2/l/DQRRSWXFNYBRCBO2G4WTIKOQSO: no such file or directory ERROR: for apollo failed to register layer: symlink ../0027aacacd89f06a1944e4198231f069a200aada88a290932f113a0cb9ab04b1/diff /var/lib/docker/overlay2/l/DAHDL3BQWHWRBVM7IV5DDI36H3: no such file or directory ERROR: for ui failed to register layer: symlink ../ebf2b0dd143761035387a4197bd103c4238b4d3fe664cf622ea2b3126b2eaba7/diff /var/lib/docker/overlay2/l/AHLFWYQ3FLDKVRIL7PPFZM3XXZ: no such file or directory ERROR: failed to register layer: symlink ../ebf2b0dd143761035387a4197bd103c4238b4d3fe664cf622ea2b3126b2eaba7/diff /var/lib/docker/overlay2/l/AHLFWYQ3FLDKVRIL7PPFZM3XXZ: no such file or directory Exception caught; killing services (press ctrl-C to force) Removing network prefect-server WARNING: Network prefect-server not found.
3 Views